Methods Summary |
---|
public java.lang.String | exceptionMessage()
return thrownException().getMessage();
|
public junit.framework.Test | failedTest()Gets the failed test.
return fFailedTest;
|
public boolean | isFailure()
return thrownException() instanceof AssertionFailedError;
|
public java.lang.Throwable | thrownException()Gets the thrown exception.
return fThrownException;
|
public java.lang.String | toString()Returns a short description of the failure.
StringBuffer buffer= new StringBuffer();
buffer.append(fFailedTest+": "+fThrownException.getMessage());
return buffer.toString();
|
public java.lang.String | trace()
StringWriter stringWriter= new StringWriter();
PrintWriter writer= new PrintWriter(stringWriter);
thrownException().printStackTrace(writer);
StringBuffer buffer= stringWriter.getBuffer();
return buffer.toString();
|