Code example for TestResult

Methods: errorCountfailureCount

0
 
 
	public static void main(String args[]) {
		TestRunner runner = new TestRunner();
		TestResult result = runner.doRun(new TestSuite(MetadataModelServiceCycleTestCase.class));
		System.exit(result.errorCount() + result.failureCount());
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java