RepeatedTest (JUnit API)

Junit API


junit.extensions Class RepeatedTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--junit.extensions.RepeatedTest
All Implemented Interfaces:
Test

public class RepeatedTest
extends TestDecorator

A Decorator that runs a test repeatedly.


 
 
 
 int
 void
 java.lang.String
 
 
 
 

RepeatedTest

public RepeatedTest(Test test,
                    int repeat)

countTestCases

public int countTestCases()
Description copied from interface: Test
Counts the number of test cases that will be run by this test.

Specified by:
countTestCases in interface Test
Overrides:
countTestCases in class TestDecorator

run

public void run(TestResult result)
Description copied from interface: Test
Runs a test and collects its result in a TestResult instance.

Specified by:
run in interface Test
Overrides:
run in class TestDecorator

toString

public java.lang.String toString()
Overrides:
toString in class TestDecorator