|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.apache.commons.cactus.AbstractTestCase
Abstract class that specific test cases (ServletTestCase
,
FilterTestCase
, ...) must extend. Provides generally useful
methods fro writing a specific test case.
Field Summary | |
java.lang.String |
currentTestMethod
The name of the current test method being executed. |
Constructor Summary | |
AbstractTestCase(java.lang.String theName)
Constructs a JUnit test case with the given name. |
Method Summary | |
void |
runBare()
Runs the bare test sequence. |
void |
runBareServerTest()
Run the test that was specified in the constructor on the server side, calling setUp() and tearDown() . |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, name, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String currentTestMethod
testXXX()
, setUp()
or
tearDown()
method, as well as from beginXXX()
and endXXX()
methods.Constructor Detail |
public AbstractTestCase(java.lang.String theName)
theName
- the name of the test caseMethod Detail |
public void runBare() throws java.lang.Throwable
TestCase
class in order to prevent the latter
to call the setUp()
and tearDown()
methods
which, in our case, need to be ran in the servlet engine by the
servlet redirector class.runBare
in class junit.framework.TestCase
java.lang.Throwable
- if any exception is thrownpublic void runBareServerTest() throws java.lang.Throwable
setUp()
and tearDown()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |