|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.apache.cactus.AbstractTestCase
Abstract class that specific test cases (ServletTestCase
,
FilterTestCase
, ...) must extend. Provides generally useful
methods fro writing a specific test case.
Field Summary | |
static String |
LOG_CLIENT_CONFIG
Name of properties file to initialize logging subsystem |
Constructor Summary | |
AbstractTestCase(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, 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, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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 static final String LOG_CLIENT_CONFIG
Constructor Detail |
public AbstractTestCase(String theName)
theName
- the name of the test case
Method 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.
Throwable
- Throwable if any exception is thrown during the test. Any
exception will be displayed by the JUnit Test Runner
public void runBareServerTest() throws java.lang.Throwable
setUp()
and tearDown()
.
Throwable
- Throwable any error that occurred when calling the test method
for the current test case, on the server side.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |