|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.extensions.TestDecorator
A Decorator for Tests. Use TestDecorator as the base class for defining new test decorators. Test decorator subclasses can be introduced to add behaviour before or after a test is run.
Field Summary | |
protected Test |
fTest
|
Constructor Summary | |
TestDecorator(Test test)
|
Method Summary | |
void |
basicRun(TestResult result)
The basic run behaviour. |
int |
countTestCases()
Counts the number of test cases that will be run by this test. |
Test |
getTest()
|
void |
run(TestResult result)
Runs a test and collects its result in a TestResult instance. |
java.lang.String |
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 |
Field Detail |
protected Test fTest
Constructor Detail |
public TestDecorator(Test test)
Method Detail |
public void basicRun(TestResult result)
public int countTestCases()
Test
countTestCases
in interface Test
public void run(TestResult result)
Test
run
in interface Test
public java.lang.String toString()
public Test getTest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |