|
||||||||||
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.ActionTestCase
This class needs to retrieve the application context file as specified by a setter (or the constructor) to load the actions. The actions within a file will then be processed as part of the single test method.
Each test cases may have several validators. If this is the case, retrieve them from the validator map (with the test cases bean name as the key) and run the validator, asserting the result. This class represents a single test, and cannot be broken down to sub tests.
Constructor Summary | |
ActionTestCase()
|
Method Summary | |
java.util.List |
getTestActions()
|
protected void |
runTest()
Override the runTest method, which simply looks at the junit name and invokes that name as the method. |
void |
setTestActions(java.util.List testActions)
|
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, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActionTestCase()
Method Detail |
protected void runTest() throws java.lang.Throwable
java.lang.Throwable
public java.util.List getTestActions()
public void setTestActions(java.util.List testActions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |