FileDocCategorySizeDatePackage
TestDecorator.javaAPI DocAndroid 1.5 API739Wed May 06 22:41:02 BST 2009junit.extensions

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.

Fields Summary
protected Test
fTest
Constructors Summary
public TestDecorator(Test test)

		fTest= test;
	
Methods Summary
public voidbasicRun(junit.framework.TestResult result)
The basic run behaviour.

		fTest.run(result);
	
public intcountTestCases()

		return fTest.countTestCases();
	
public junit.framework.TestgetTest()

		return fTest;
	
public voidrun(junit.framework.TestResult result)

		basicRun(result);
	
public java.lang.StringtoString()

		return fTest.toString();