junit.framework
Class TestFailure
Object
junit.framework.TestFailure
public class TestFailure
extends Object
A TestFailure
collects a failed test together with
the caught exception.
TestResult
TestFailure(Test failedTest, Throwable thrownException) - Constructs a TestFailure with the given test and exception.
|
fFailedTest
protected Test fFailedTest
fThrownException
protected Throwable fThrownException
TestFailure
public TestFailure(Test failedTest,
Throwable thrownException)
Constructs a TestFailure with the given test and exception.
exceptionMessage
public String exceptionMessage()
failedTest
public Test failedTest()
Gets the failed test.
isFailure
public boolean isFailure()
thrownException
public Throwable thrownException()
Gets the thrown exception.
toString
public String toString()
Returns a short description of the failure.
trace
public String trace()