junit.framework
public class TestFailure extends Object
TestFailure collects a failed test together with
the caught exception.See Also: 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() |