|
JUnit 3.8.1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestFailure
A TestFailure
collects a failed test together with
the caught exception.
TestResult
Field Summary | |
protected Test |
fFailedTest
|
protected Throwable |
fThrownException
|
Constructor Summary | |
TestFailure(Test failedTest,
Throwable thrownException)
Constructs a TestFailure with the given test and exception. |
Method Summary | |
String |
exceptionMessage()
|
Test |
failedTest()
Gets the failed test. |
boolean |
isFailure()
|
Throwable |
thrownException()
Gets the thrown exception. |
String |
toString()
Returns a short description of the failure. |
String |
trace()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Test fFailedTest
protected Throwable fThrownException
Constructor Detail |
public TestFailure(Test failedTest, Throwable thrownException)
Method Detail |
public Test failedTest()
public Throwable thrownException()
public String toString()
public String trace()
public String exceptionMessage()
public boolean isFailure()
|
JUnit 3.8.1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |