junit.extensions
Class TestDecorator

java.lang.Object
  |
  +--junit.extensions.TestDecorator
Direct Known Subclasses:
ActiveTest, RepeatedTest, TestSetup

public class TestDecorator
extends java.lang.Object
implements Test

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.


Constructor Summary
TestDecorator(Test test)
           
 
Method Summary
 void basicRun(TestResult result)
          The basic run behaviour.
 int countTestCases()
           
 void run(TestResult result)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestDecorator

public TestDecorator(Test test)
Method Detail

basicRun

public void basicRun(TestResult result)
The basic run behaviour.

countTestCases

public int countTestCases()
Specified by:
countTestCases in interface Test

run

public void run(TestResult result)
Specified by:
run in interface Test

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object