Code example for TestResult

Methods: runCount

0
	} 
 
	public void testRepeatedOnce() { 
		Test test= new RepeatedTest(fSuite, 1);
		assertEquals(2, test.countTestCases());
		TestResult result= new TestResult();
		test.run(result);
		assertEquals(2, result.runCount());
	} 
 
 	public void testRepeatedMoreThanOnce() { 
		Test test= new RepeatedTest(fSuite, 3);
		assertEquals(6, test.countTestCases());
		TestResult result= new TestResult();
		test.run(result);
		assertEquals(6, result.runCount());
	} 
 
 	public void testRepeatedZero() { 
		Test test= new RepeatedTest(fSuite, 0);
		assertEquals(0, test.countTestCases());