public class TestFailure
extends Object
| java.lang.Object | |
| junit.framework.TestFailure | |
一个 TestFailure与捕获到的异常一起收集失败的测试。
也可以看看:
Fields |
|
|---|---|
protected Test |
fFailedTest |
protected Throwable |
fThrownException |
Public constructors |
|
|---|---|
TestFailure(Test failedTest, Throwable thrownException) 用给定的测试和例外构造TestFailure。 |
|
公共方法(Public methods) |
|
|---|---|
String |
exceptionMessage() |
Test |
failedTest() 获取失败的测试。 |
boolean |
isFailure() |
Throwable |
thrownException() 获取抛出的异常。 |
String |
toString() 返回失败的简短描述。 |
String |
trace() |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
TestFailure (Test failedTest, Throwable thrownException)
用给定的测试和例外构造TestFailure。
| 参数(Parameters) | |
|---|---|
failedTest |
Test
|
thrownException |
Throwable
|
String toString ()
返回失败的简短描述。
| 返回(Returns) | |
|---|---|
String |
a string representation of the object. |