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