Code example for TestResult

Methods: addListener

0
	public void endTest(Test test) {
		fEndCount++;
	} 
	@Override 
	protected void setUp() { 
		fResult= new TestResult();
		fResult.addListener(this);
	 
		fStartCount= 0;
		fEndCount= 0;
		fFailureCount= 0;
	} 
	public void startTest(Test test) {
		fStartCount++;
	} 
	public void testError() { 
		TestCase test= new TestCase("noop") {
			@Override 
			public void runTest() { 
				throw new Error();
			}