public class

TestDecorator

extends Assert
implements Test
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.extensions.TestDecorator
Known Direct Subclasses

Class Overview

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.

Summary

Fields
protected Test fTest
Public Constructors
TestDecorator(Test test)
Public Methods
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.
String toString()
[Expand]
Inherited Methods
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Fields

protected Test fTest

Public Constructors

public TestDecorator (Test test)

Public Methods

public void basicRun (TestResult result)

The basic run behaviour.

public int countTestCases ()

Counts the number of test cases that will be run by this test.

public Test getTest ()

public void run (TestResult result)

Runs a test and collects its result in a TestResult instance.

public String toString ()