# Print output for @column tags ?>
public
class
TestFailure
extends Object
java.lang.Object | |
↳ | junit.framework.TestFailure |
A TestFailure
collects a failed test together with
the caught exception.
See also:
Fields | |
---|---|
protected
Test |
fFailedTest
|
protected
Throwable |
fThrownException
|
Public constructors | |
---|---|
TestFailure(Test failedTest, Throwable thrownException)
Constructs a TestFailure with the given test and exception. |
Public methods | |
---|---|
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()
|
Inherited methods | |
---|---|
public TestFailure (Test failedTest, Throwable thrownException)
Constructs a TestFailure with the given test and exception.
Parameters | |
---|---|
failedTest |
Test |
thrownException |
Throwable |
public boolean isFailure ()
Returns | |
---|---|
boolean |