⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
junit.extensions

Class TestDecorator

java.lang.Object
|
+--junit.framework.Assert
   |
   +--junit.extensions.TestDecorator

All Implemented Interfaces:
Test

Known Direct Subclasses:
RepeatedTest, TestSetup


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

Test

fTest

A Decorator for Tests.

Constructor Summary

TestDecorator(Test test)

Method Summary

void

basicRun(TestResult result)

The basic run behaviour.

int

countTestCases()

Test

getTest()

void

run(TestResult result)

String

toString()

Field Details

fTest

protected Test fTest

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 Details

TestDecorator

public TestDecorator(Test test)

Parameters:
test

Method Details

basicRun

public void basicRun(TestResult result)

The basic run behaviour.

Parameters:
result

countTestCases

public int countTestCases()


getTest

public Test getTest()


run

public void run(TestResult result)

Parameters:
result

toString

public String toString()