All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class test.framework.TestFailure

java.lang.Object
   |
   +----test.framework.TestFailure

public class TestFailure
extends Object
A TestFailure collects a failed test together with the caught exception.

See Also:
TestResult

Variable Index

 o fFailedTest
 o fThrownException

Constructor Index

 o TestFailure(Test, Throwable)
Constructs a TestFailure with the given test and exception.

Method Index

 o failedTest()
Gets the failed test.
 o thrownException()
Gets the thrown exception.
 o toString()
Returns a short description of the failure.

Variables

 o fFailedTest
 protected Test fFailedTest
 o fThrownException
 protected Throwable fThrownException

Constructors

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

Methods

 o failedTest
 public Test failedTest()
Gets the failed test.

 o thrownException
 public Throwable thrownException()
Gets the thrown exception.

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

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index