|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.exist.xmldb.test.concurrent.ConcurrentTestBase
Abstract base class for concurrent tests.
Constructor Summary | |
ConcurrentTestBase(java.lang.String name,
java.lang.String uri,
java.lang.String testCollection)
|
Method Summary | |
void |
addAction(Action action,
int repeat,
long delayBeforeStart,
long delay)
Add an Action to the list of actions that will be processed
concurrently. |
Collection |
getTestCollection()
|
void |
testConcurrent()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConcurrentTestBase(java.lang.String name, java.lang.String uri, java.lang.String testCollection)
name
- the name of the test.uri
- the XMLDB URI of the root collection.testCollection
- the name of the collection that will be created for the test.Method Detail |
public void addAction(Action action, int repeat, long delayBeforeStart, long delay)
Action
to the list of actions that will be processed
concurrently. Should be called after #setUp()
.
action
- the action.repeat
- number of times the actions should be repeated.public Collection getTestCollection()
public void testConcurrent()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |