|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestFailure
public class TestFailure
A TestFailure
collects a failed test together with
the caught exception.
TestResult
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestFailure(Test failedTest, Throwable thrownException)
Method Detail |
---|
public Test failedTest()
public Throwable thrownException()
public String toString()
toString
in class Object
public String trace()
public String exceptionMessage()
public boolean isFailure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |