public void testFailed(int statusCode, String testId, String testName, String trace, String expected, String actual) { TestElement testElement= getTestElement(testId); if (! (testElement instanceof TestCaseElement)) { logUnexpectedTest(testId, testElement); return; } TestCaseElement test= (TestCaseElement) testElement;  Status status= Status.convert(statusCode); setStatus(test, status, trace, expected, actual);  if (statusCode == ITestRunListener.STATUS_ERROR) { fErrorCount++; } else { fFailureCount++; }  Object[] listeners= fSessionListeners.getListeners(); for (int i= 0; i < listeners.length; ++i) { ((ITestSessionListener) listeners[i]).testFailed(test, status, trace, expected, actual); }
public void testFailed(int status, String testId, String testName, String trace) { testFailed(status, testId, testName, trace, null, null);
		public void testFailed(int statusCode, String testId, String testName, String trace, String expected, String actual) {			TestElement testElement= getTestElement(testId);			if (! (testElement instanceof TestCaseElement)) {				logUnexpectedTest(testId, testElement);				return;			}			TestCaseElement test= (TestCaseElement) testElement;			Status status= Status.convert(statusCode);			setStatus(test, status, trace, expected, actual);						if (statusCode == ITestRunListener.STATUS_ERROR) {				fErrorCount++;			} else {				fFailureCount++;			}						Object[] listeners= fSessionListeners.getListeners();			for (int i= 0; i < listeners.length; ++i) {				((ITestSessionListener) listeners[i]).testFailed(test, status, trace, expected, actual);			}		}