junit.extensions

Class TestDecorator

public class TestDecorator extends Assert 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.
Field Summary
protected TestfTest
Constructor Summary
TestDecorator(Test test)
Method Summary
voidbasicRun(TestResult result)
The basic run behaviour.
intcountTestCases()
TestgetTest()
voidrun(TestResult result)
StringtoString()

Field Detail

fTest

protected Test fTest

Constructor Detail

TestDecorator

public TestDecorator(Test test)

Method Detail

basicRun

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

countTestCases

public int countTestCases()

getTest

public Test getTest()

run

public void run(TestResult result)

toString

public String toString()