org.quilt.runner
Class Runner

java.lang.Object
  |
  +--org.quilt.framework.QuiltTest
        |
        +--org.quilt.runner.Runner
All Implemented Interfaces:
java.lang.Cloneable, RunnerConst, junit.framework.TestListener
Direct Known Subclasses:
BaseTestRunner

public abstract class Runner
extends QuiltTest
implements RunnerConst, junit.framework.TestListener

Abstract class extended by Quilt test runners.


Field Summary
 
Fields inherited from interface org.quilt.runner.RunnerConst
DEFAULT_TRACE_FILTERS, ERRORS, FAILURES, SUCCESS
 
Constructor Summary
Runner()
           
 
Method Summary
abstract  void addError(junit.framework.Test test, java.lang.Throwable t)
          An unexpected error has occurred.
abstract  void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
          A failure (or error) has occurred.
abstract  void addFailure(junit.framework.Test test, java.lang.Throwable t)
          A failure (or error) has occurred.
abstract  void addFormatter(Formatter f)
          Add a result formatter.
abstract  void endTest(junit.framework.Test test)
          Method called at end of individual test run.
static java.lang.String filterStack(java.lang.String stack, boolean filtertrace)
          Filters stack traces from Ant, Quilt, and JUnit classes.
static java.lang.String getFilteredTrace(java.lang.Throwable t, boolean filtertrace)
           
abstract  int getRetCode()
           
abstract  void handleErrorFlush(java.lang.String line)
          Flush the error output stream.
abstract  void handleErrorOutput(java.lang.String line)
          Process an error message
abstract  void handleFlush(java.lang.String line)
          Flush standard output.
abstract  void handleOutput(java.lang.String line)
          Process a block of output.
abstract  void run()
           
abstract  void startTest(junit.framework.Test t)
          Method called at start of individual test suite.
 
Methods inherited from class org.quilt.framework.QuiltTest
addFormatter, addFormattersTo, clone, errorCount, failureCount, getCheckCoverage, getCheckExcludes, getCheckExcludesArray, getCheckIncludes, getCheckIncludesArray, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getFormatters, getHaltOnError, getHaltOnFailure, getIfProperty, getMockTestRun, getName, getOutfile, getProperties, getRunTime, getShowOutput, getTodir, getUnlessProperty, runCount, runMe, setCheckCoverage, setCheckExcludes, setCheckIncludes, setCounts, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltOnError, setHaltOnFailure, setIf, setMockTestRun, setName, setOutfile, setProperties, setRunTime, setShowOutput, setTodir, setUnless, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Runner

public Runner()
Method Detail

run

public abstract void run()

getRetCode

public abstract int getRetCode()

getFilteredTrace

public static java.lang.String getFilteredTrace(java.lang.Throwable t,
                                                boolean filtertrace)

filterStack

public static java.lang.String filterStack(java.lang.String stack,
                                           boolean filtertrace)
Filters stack traces from Ant, Quilt, and JUnit classes. These are usually meaningless to users, who wants to concentrate on their own code.


addFormatter

public abstract void addFormatter(Formatter f)
Add a result formatter.


addFailure

public abstract void addFailure(junit.framework.Test test,
                                java.lang.Throwable t)
A failure (or error) has occurred.


addFailure

public abstract void addFailure(junit.framework.Test test,
                                junit.framework.AssertionFailedError t)
A failure (or error) has occurred.

Specified by:
addFailure in interface junit.framework.TestListener

addError

public abstract void addError(junit.framework.Test test,
                              java.lang.Throwable t)
An unexpected error has occurred.

Specified by:
addError in interface junit.framework.TestListener

startTest

public abstract void startTest(junit.framework.Test t)
Method called at start of individual test suite.

Specified by:
startTest in interface junit.framework.TestListener

endTest

public abstract void endTest(junit.framework.Test test)
Method called at end of individual test run.

Specified by:
endTest in interface junit.framework.TestListener

handleOutput

public abstract void handleOutput(java.lang.String line)
Process a block of output.


handleErrorOutput

public abstract void handleErrorOutput(java.lang.String line)
Process an error message


handleFlush

public abstract void handleFlush(java.lang.String line)
Flush standard output.


handleErrorFlush

public abstract void handleErrorFlush(java.lang.String line)
Flush the error output stream.



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.