|
||||||||||
| 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.castor.cpa.test.framework.CPATestCase
org.castor.cpa.test.framework.CPAThreadedTestCase
public abstract class CPAThreadedTestCase
Abstract base class for all multi threaded CPA test cases.
Based on http://www.javaworld.com/jw-12-2000/jw-1221-junit.html?page=6
| Constructor Summary | |
|---|---|
CPAThreadedTestCase()
Default constructor. |
|
CPAThreadedTestCase(String name)
Construct CPAThreadedTestCase with given name. |
|
| Method Summary | |
|---|---|
protected void |
interruptThreads()
Interrupt all Runnables belonging to this test. |
protected void |
runTestRunnables(CPAThreadedTestRunnable[] runnables)
Create threads for all given Runnables, start them and wait until they died all. |
| Methods inherited from class org.castor.cpa.test.framework.CPATestCase |
|---|
exclude, getDbConfig, getJdoConfBaseURL, getJDOManager, getJDOManager, getProperties, getTxConfig, handleException, include, run |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, runBare, runTest, setName, setUp, tearDown, 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, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CPAThreadedTestCase()
public CPAThreadedTestCase(String name)
name - Name of the test.| Method Detail |
|---|
protected final void runTestRunnables(CPAThreadedTestRunnable[] runnables)
runnables - Array of Runnables to execute with this test case.protected final void interruptThreads()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||