Code example for TestResult

Methods: errorCounterrors

		assertEquals(1, fAdapter.getTests().size());
	public void initializationErrorsAreThrownAtRuntime() { 
		TestResult result= new TestResult();;
		assertEquals(1, result.errorCount());
		assertEquals(CantInitialize.UNIQUE_ERROR_MESSAGE, result.errors()
	private final class ErrorRememberingListener implements TestListener {
		private junit.framework.Test fError;
		public void addError(junit.framework.Test test, Throwable t) {
			fError= test;
		public void addFailure(junit.framework.Test test,
Connect your IDE to all the code out there  Get Codota for Java