|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.jete.cases.BaseActionTestCase org.jete.cases.MultiTestCase org.jete.cases.ContextFileTestCase
Configure with a test application file, and a list of tests within that file. When called, this will load the application context of the file specified, and if testnames are configured, execute those tests.
When no test names are configured, all test cases in the application context file will be run. To prevent all tests from being loaded in memory and staying there, set the removeContext attribute to true. This will close the loaded application context when test execution is complete, freeing up memory.
Field Summary |
Fields inherited from class org.jete.cases.MultiTestCase |
result |
Constructor Summary | |
ContextFileTestCase()
|
Method Summary | |
java.lang.String |
getContextFile()
|
java.util.List |
getTestNames()
|
boolean |
isRemoveContext()
|
void |
run(junit.framework.TestResult result)
Override the run(TestResult) method to store the results locally, allowing the addTestCases method to pass the results to each specified sub test. |
void |
setContextFile(java.lang.String contextFile)
|
void |
setRemoveContext(boolean removeContext)
|
void |
setTestNames(java.util.List testNames)
|
protected void |
tearDown()
After running the tests, we should unload the context to preserve resources |
Methods inherited from class org.jete.cases.MultiTestCase |
getPooledExecutor, getPoolShutdownWaitTime, getTestCases, setPooledExecutor, setPoolShutdownWaitTime, setTestCases |
Methods inherited from class org.jete.cases.BaseActionTestCase |
getSetupActions, getTearDownActions, runActions, setSetupActions, setTearDownActions, setUp |
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 |
Constructor Detail |
public ContextFileTestCase()
Method Detail |
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
run
in class MultiTestCase
result
- protected void tearDown() throws java.lang.Exception
tearDown
in class BaseActionTestCase
java.lang.Exception
public boolean isRemoveContext()
public void setRemoveContext(boolean removeContext)
public java.lang.String getContextFile()
public void setContextFile(java.lang.String contextFile)
public java.util.List getTestNames()
public void setTestNames(java.util.List testNames)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |