out.flush();
}
public void notify(TestResult testResult)
{
Notification notification = null;
if (testResult.getNumberOfErrors() > 0)
{
out.println("ERROR - The test " + testResult.getTestName() + " finished with an Error.");
out.flush();
notification = testResult.getError();
}
else if (testResult.getFailure() != null)
{
out.println("FAILURE - The test " + testResult.getTestName() + " finished with a Failure.");
out.flush();
notification = testResult.getFailure();
}
if (notification != null)
{
out.println(notification.getShortMessage());
if (debugMode)
{
out.println(notification.getFullMessage());
}
out.flush();
}
else if (testResult.isSkipped())
{