|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejosunit.framework.TestFailure
A TestFailure
collects a failed test together with
the caught exception.
leJOSUnit changes:
TestResult
Constructor Summary | |
TestFailure(Test failedTest,
java.lang.Throwable thrownException)
Constructs a TestFailure with the given test and exception. |
Method Summary | |
Test |
failedTest()
Gets the failed test. |
java.lang.Throwable |
thrownException()
Gets the thrown exception. |
java.lang.String |
toString()
Returns a short description of the failure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestFailure(Test failedTest, java.lang.Throwable thrownException)
failedTest
- the failed testthrownException
- the thrown exception by the test caseMethod Detail |
public Test failedTest()
public java.lang.Throwable thrownException()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |