Android
junit.extensions
public class

junit.extensions.TestDecorator

java.lang.Object
junit.framework.Assert
junit.extensions.TestDecorator 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.

Known Direct Subclasses

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()
Returns a string containing a concise, human-readable description of the receiver.
Methods inherited from class junit.framework.Assert
Methods inherited from class java.lang.Object
Methods inherited from interface junit.framework.Test

Details

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()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48