|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--junit.framework.TestFailure
検証に失敗したTestオブジェクトとスローされた例外を格納するクラスです。
TestResult
フィールドの概要 | |
protected Test |
fFailedTest
検証に失敗したTestオブジェクト |
protected java.lang.Throwable |
fThrownException
スローされた例外オブジェクト |
コンストラクタの概要 | |
TestFailure(Test failedTest,
java.lang.Throwable thrownException)
検証に失敗したTestオブジェクトとスローされた例外を元に、 TestFailureオブジェクトを生成します。 |
メソッドの概要 | |
java.lang.String |
exceptionMessage()
スローされた例外のメッセージのみを返却します。 |
Test |
failedTest()
検証に失敗したTestオブジェクトを取得します。 |
boolean |
isFailure()
スローされた例外が、AssertionFailedErrorクラスのオブジェクト、または AssertionFailedErrorのサブクラスのオブジェクトであるかどうかを判定します。 |
java.lang.Throwable |
thrownException()
スローされた例外を取得します。 |
java.lang.String |
toString()
検証失敗に関する短いコメントを返却します。 |
java.lang.String |
trace()
スローされた例外の全てのStackTraceを、文字列として返却します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected Test fFailedTest
protected java.lang.Throwable fThrownException
コンストラクタの詳細 |
public TestFailure(Test failedTest, java.lang.Throwable thrownException)
メソッドの詳細 |
public Test failedTest()
public java.lang.Throwable thrownException()
public java.lang.String toString()
java.lang.Object
内の toString
public java.lang.String trace()
public java.lang.String exceptionMessage()
public boolean isFailure()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |