All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class junit.textui.TextTestResult

java.lang.Object
   |
   +----junit.framework.TestResult
           |
           +----junit.textui.TextTestResult

public class TextTestResult
extends TestResult
A TestResult which reports the results textually.


Constructor Index

 o TextTestResult()

Method Index

 o addError(Test, Throwable)
Adds an error to the list of errors.
 o addFailure(Test, Throwable)
Adds a failure to the list of failures.
 o print()
Prints failures to the standard output
 o printErrors()
Prints the errors to the standard output
 o printFailures()
Prints failures to the standard output
 o printHeader()
Prints the header of the report
 o startTest(Test)
Informs the result that a test will be started.

Constructors

 o TextTestResult
 public TextTestResult()

Methods

 o addError
 public synchronized void addError(Test test,
                                   Throwable t)
Adds an error to the list of errors.

Overrides:
addError in class TestResult
 o addFailure
 public synchronized void addFailure(Test test,
                                     Throwable t)
Adds a failure to the list of failures.

Overrides:
addFailure in class TestResult
 o print
 public synchronized void print()
Prints failures to the standard output

 o printErrors
 public void printErrors()
Prints the errors to the standard output

 o printFailures
 public void printFailures()
Prints failures to the standard output

 o printHeader
 public void printHeader()
Prints the header of the report

 o startTest
 public synchronized void startTest(Test test)
Informs the result that a test will be started.

Overrides:
startTest in class TestResult

All Packages  Class Hierarchy  This Package  Previous  Next  Index