|
|||||||||||
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.apache.cactus.internal.AbstractCactusTestCase
Base class for all Cactus test case extensions. Note: We must not add any method that can be called by the end user to this class as users will those methods and it will create a runtime dependency to this class. We will then have to break binary compatibility if we wish to move this class around or change its implementation.
Constructor Summary | |
AbstractCactusTestCase()
Default constructor defined in order to allow creating Test Case without needing to define constructor (new feature in JUnit 3.8.1). |
|
AbstractCactusTestCase(java.lang.String theName)
Constructs a JUnit test case with the given name. |
|
AbstractCactusTestCase(java.lang.String theName,
junit.framework.Test theTest)
Wraps a pure JUnit Test Case in a Cactus Test Case. |
Method Summary | |
protected abstract ProtocolHandler |
createProtocolHandler()
Create a protocol handler instance that will be used to connect to the server side. |
void |
runBare()
JUnit method that is used to run the tests. |
void |
runBareServer()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractCactusTestCase()
public AbstractCactusTestCase(java.lang.String theName)
theName
- the name of the test casepublic AbstractCactusTestCase(java.lang.String theName, junit.framework.Test theTest)
theName
- the name of the testtheTest
- the Test Case class to wrapMethod Detail |
protected abstract ProtocolHandler createProtocolHandler()
public void runBare() throws java.lang.Throwable
java.lang.Throwable
- if any exception is thrown during the test. Any
exception will be displayed by the JUnit Test Runnerpublic void runBareServer() throws java.lang.Throwable
java.lang.Throwable
CactusTestCase.runBareServer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |