Bug 75336 RemoteTestRunner.runFailed omits stack trace [JUnit]
i200409211200 RemoteTestRunner.runFailed omits the stack trace, just prints the exception message to the console. I was having a NPE while building a test suite, but the only feedback I would get would be: Failed to invoke suite(): java.lang.NullPointerException The code in the suite method was not trivial, so I could only figure out where it was happening by debugging with an NPE-based breakpoint.
org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java
sendMessage(MessageIds.TEST_TREE + treeEntry);
	}
	
	private void notifyTestReran(TestResult result, String testId, String testClass, String testName) {
		TestFailure failure= null;
		if (result.errorCount() > 0) {
			failure= (TestFailure)result.errors().nextElement();
		}
		if (result.failureCount() > 0) {
			failure= (TestFailure)result.failures().nextElement();
		}
		if (failure != null) {
			Throwable t= failure.thrownException();
			
			if ("3".equals(fVersion)) { 
			    if (isComparisonFailure(t)) {
			        
			        Object expected = getField(t, "fExpected"); 
			        Object actual = getField(t, "fActual"); 
			        if (expected != null && actual != null) {
			    	    sendMessage(MessageIds.EXPECTED_START);
			    	    sendMessage((String) expected);
			    	    sendMessage(MessageIds.EXPECTED_END);
			    	    
			    	    sendMessage(MessageIds.ACTUAL_START);
			    	    sendMessage((String) actual);
			    	    sendMessage(MessageIds.ACTUAL_END);
			        }
			    }
			}