TestFailure (JUnit API)

Junit API


junit.framework Class 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.

See Also:
TestResult

protected  Test
protected  java.lang.Throwable
 
 
 java.lang.String
 Test
 boolean
 java.lang.Throwable
 java.lang.String
 java.lang.String
 
 

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.

Overrides:
toString in class java.lang.Object

trace

public java.lang.String trace()

exceptionMessage

public java.lang.String exceptionMessage()

isFailure

public boolean isFailure()