junit.framework
クラス TestFailure

java.lang.Object
  拡張junit.framework.TestFailure

public class TestFailure
extends java.lang.Object

A TestFailure collects a failed test together with the caught exception.

関連項目:
TestResult

フィールドの概要
protected  Test fFailedTest
           
protected  java.lang.Throwable fThrownException
           
 
コンストラクタの概要
TestFailure(Test failedTest, java.lang.Throwable thrownException)
          Constructs a TestFailure with the given test and exception.
 
メソッドの概要
 java.lang.String exceptionMessage()
           
 Test 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()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

fFailedTest

protected Test fFailedTest

fThrownException

protected java.lang.Throwable fThrownException
コンストラクタの詳細

TestFailure

public TestFailure(Test failedTest,
                   java.lang.Throwable thrownException)
Constructs a TestFailure with the given test and exception.

メソッドの詳細

failedTest

public Test failedTest()
Gets the failed test.


thrownException

public java.lang.Throwable thrownException()
Gets the thrown exception.


toString

public java.lang.String toString()
Returns a short description of the failure.


trace

public java.lang.String trace()

exceptionMessage

public java.lang.String exceptionMessage()

isFailure

public boolean isFailure()


Copyright © 2001-2004 JUnit.org. All Rights Reserved.