org.schmant.task.junit4.suitereporter
Class FailedTest

java.lang.Object
  extended by org.schmant.task.junit4.suitereporter.FailedTest

public class FailedTest
extends Object

This contains data about a failed test in a TestRun. It is used by JUnit4TestSuiteReportPrinter:s.

The data stored in a FailedTest object is taken from a JUnit org.junit.runner.Failure object.

Instances of this class are immutable.

Since:
0.6
Author:
Karl Gustafsson
See Also:
TestRun
Task_package:
org.junit.junit4

Constructor Summary
FailedTest(String description, String testHeader, String message, String stackTrace)
           
 
Method Summary
 String getDescription()
          Get the description of the failed test.
 String getMessage()
          Get the failure message.
 String[] getStackTrace()
          Get the failure's stack trace.
 String getTestHeader()
          Get the header of the failed test.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailedTest

public FailedTest(String description,
                  String testHeader,
                  String message,
                  String stackTrace)
Method Detail

getDescription

public String getDescription()
Get the description of the failed test.

Returns:
The description of the failed test.

getMessage

public String getMessage()
Get the failure message.

Returns:
The failure message.

getStackTrace

public String[] getStackTrace()
Get the failure's stack trace. Each element in the returned array is a stack trace row.

Returns:
The stack trace.

getTestHeader

public String getTestHeader()
Get the header of the failed test.

Returns:
The header of the failed test.

toString

public String toString()
Overrides:
toString in class Object