Code example for TestResult

Methods: errorsfailures

0
	 *  
	 * @param result 
	 * @param holder 
	 */ 
	public static void unpackProblems(TestResult result, OsgiTestInfoHolder holder) {
		Enumeration errors = result.errors();
		while (errors.hasMoreElements()) {
			TestFailure failure = (TestFailure) errors.nextElement();
			holder.addTestError(failure.thrownException());
		} 
		Enumeration failures = result.failures();
		while (failures.hasMoreElements()) {
			TestFailure failure = (TestFailure) failures.nextElement();
			holder.addTestFailure(failure.thrownException());
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE