junit.framework.TestFailure
A TestFailure
collects a failed test together with
the caught exception.
Summary
Fields
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Fields
protected
Test
fFailedTest
Public Constructors
public
TestFailure(Test failedTest, Throwable thrownException)
Constructs a TestFailure with the given test and exception.
Public Methods
public
String
exceptionMessage()
public
Test
failedTest()
Gets the failed test.
public
boolean
isFailure()
public
Throwable
thrownException()
Gets the thrown exception.
public
String
toString()
Returns a short description of the failure.
Returns
- String a printable representation for the receiver.