|
||||||||||
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.jete.cases.BaseActionTestCase
org.jete.cases.MultiTestCase
This class promotes a grouping of various test cases cases sets, allowing the the logical relation of test cases to each other.
The main advantage of this class is the capacity for providing a thread pool for running several instances of testcases at once, thereby significantly reducing overall test time (especially for tests where communication overhead is high). It should be noted that when using the pool, only 1 set of tests should be accessing the pool at any one time. This shouldn't normally be a problem, as pooled tests are usually run sequential (e.g. 1 pooled set of tests, then another). Any heirarchy of pooled tests will be a problem, as multiple tests accessing the same pool causes both tests to wait until all tests have completed execution.
Field Summary | |
protected junit.framework.TestResult |
result
|
Constructor Summary | |
MultiTestCase()
|
Method Summary | |
EDU.oswego.cs.dl.util.concurrent.PooledExecutor |
getPooledExecutor()
|
long |
getPoolShutdownWaitTime()
|
java.util.List |
getTestCases()
|
void |
run(junit.framework.TestResult result)
Override the run(TestResult) method to store the results locally, allowing the runTestCases method to pass the results to each specified sub test. |
void |
setPooledExecutor(EDU.oswego.cs.dl.util.concurrent.PooledExecutor pooledExecutor)
|
void |
setPoolShutdownWaitTime(long poolShutdownWaitTime)
|
void |
setTestCases(java.util.List testCases)
|
Methods inherited from class org.jete.cases.BaseActionTestCase |
getSetupActions, getTearDownActions, runActions, setSetupActions, setTearDownActions, setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, runBare, runTest, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected junit.framework.TestResult result
Constructor Detail |
public MultiTestCase()
Method Detail |
public void run(junit.framework.TestResult result)
result
- public EDU.oswego.cs.dl.util.concurrent.PooledExecutor getPooledExecutor()
public void setPooledExecutor(EDU.oswego.cs.dl.util.concurrent.PooledExecutor pooledExecutor)
public java.util.List getTestCases()
public void setTestCases(java.util.List testCases)
public long getPoolShutdownWaitTime()
public void setPoolShutdownWaitTime(long poolShutdownWaitTime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |