junit.extensions
Class PPTestResult

java.lang.Object
  |
  +--junit.framework.TestResult
        |
        +--junit.extensions.PPTestResult

public class PPTestResult
extends junit.framework.TestResult

A PPTestResult collects the results of executing a test case and implements verbose output and delaying.


Fields inherited from class junit.framework.TestResult
fErrors, fFailures, fListeners, fRunTests
 
Constructor Summary
PPTestResult(java.io.PrintStream writer, int delay, boolean verbose, java.lang.String testCaseName)
           
 
Method Summary
 void endTest(junit.framework.Test test)
          Informs the result that a test was completed.
protected  java.lang.String getTestInfo(junit.framework.Test test)
          Generates verbose test info instead of the "."
protected  void run(junit.framework.TestCase test)
          Intercept the execution of a test case and run only the desired ones
 void startTest(junit.framework.Test test)
          Informs the result that a test will be started.
 
Methods inherited from class junit.framework.TestResult
addError, addFailure, addListener, errorCount, errors, failureCount, failures, removeListener, runCount, runProtected, shouldStop, stop, wasSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPTestResult

public PPTestResult(java.io.PrintStream writer,
                    int delay,
                    boolean verbose,
                    java.lang.String testCaseName)
Method Detail

startTest

public void startTest(junit.framework.Test test)
Informs the result that a test will be started.
Overrides:
startTest in class junit.framework.TestResult

endTest

public void endTest(junit.framework.Test test)
Informs the result that a test was completed.
Overrides:
endTest in class junit.framework.TestResult

getTestInfo

protected java.lang.String getTestInfo(junit.framework.Test test)
Generates verbose test info instead of the "."

run

protected void run(junit.framework.TestCase test)
Intercept the execution of a test case and run only the desired ones
Overrides:
run in class junit.framework.TestResult


Copyright © 2001-2002 IT20one GmbH. All Rights Reserved.