Search in sources :

Example 6 with RepeatedTest

use of junit.extensions.RepeatedTest in project junit4 by junit-team.

the class RepeatedTestTest method testRepeatedOnce.

public void testRepeatedOnce() {
    Test test = new RepeatedTest(fSuite, 1);
    assertEquals(2, test.countTestCases());
    TestResult result = new TestResult();
    test.run(result);
    assertEquals(2, result.runCount());
}
Also used : Test(junit.framework.Test) RepeatedTest(junit.extensions.RepeatedTest) RepeatedTest(junit.extensions.RepeatedTest) TestResult(junit.framework.TestResult)

Aggregations

RepeatedTest (junit.extensions.RepeatedTest)6 Test (junit.framework.Test)6 TestResult (junit.framework.TestResult)6