|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.quilt.reports.BaseFormatter
Basic test result formatter for Ant/Quilt/JUnit.
| Field Summary | |
protected boolean |
filtertrace
|
protected java.text.NumberFormat |
numberFormat
|
protected java.io.OutputStream |
out
|
protected java.io.PrintWriter |
output
|
protected java.io.StringWriter |
results
|
protected java.io.PrintWriter |
resultWriter
|
protected Runner |
runner
|
protected java.lang.String |
systemError
|
protected java.lang.String |
systemOutput
|
| Constructor Summary | |
BaseFormatter()
|
|
| Method Summary | |
void |
addError(junit.framework.Test test,
java.lang.Throwable error)
A test caused an unexpected error. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
A test failed. |
void |
addFailure(junit.framework.Test test,
java.lang.Throwable t)
A test failed. |
void |
endTest(junit.framework.Test test)
Method called at end of test. |
void |
endTestSuite(QuiltTest suite)
Called at end of Quilt/JUnit test run. |
static java.lang.String |
getTestName(junit.framework.Test test)
Root around in a junit Test and find a getName method. |
void |
setFiltertrace(boolean b)
Whether to filter Ant/Quilt/JUnit lines from stack traces. |
void |
setOutput(java.io.OutputStream out)
Where to send the report output. |
void |
setRunner(Runner testrunner)
Determines which test runner to use. |
void |
setSystemError(java.lang.String err)
Where to send system error output. |
void |
setSystemOutput(java.lang.String out)
Where to send system output. |
void |
startTest(junit.framework.Test test)
Method called at beginning of test. |
void |
startTestSuite(QuiltTest suite)
Called at the start of the Ant/Quilt/JUnit test run. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean filtertrace
protected java.text.NumberFormat numberFormat
protected java.io.OutputStream out
protected java.io.PrintWriter output
protected Runner runner
protected java.io.StringWriter results
protected java.io.PrintWriter resultWriter
protected java.lang.String systemError
protected java.lang.String systemOutput
| Constructor Detail |
public BaseFormatter()
| Method Detail |
public static java.lang.String getTestName(junit.framework.Test test)
public void endTestSuite(QuiltTest suite)
throws org.apache.tools.ant.BuildException
endTestSuite in interface Formatterorg.apache.tools.ant.BuildExceptionpublic void setFiltertrace(boolean b)
setFiltertrace in interface Formatterpublic void setOutput(java.io.OutputStream out)
setOutput in interface Formatterpublic void setRunner(Runner testrunner)
setRunner in interface Formatterpublic void setSystemOutput(java.lang.String out)
setSystemOutput in interface Formatterpublic void setSystemError(java.lang.String err)
setSystemError in interface Formatter
public void startTestSuite(QuiltTest suite)
throws org.apache.tools.ant.BuildException
startTestSuite in interface Formatterorg.apache.tools.ant.BuildException
public void addError(junit.framework.Test test,
java.lang.Throwable error)
addError in interface junit.framework.TestListener
public void addFailure(junit.framework.Test test,
java.lang.Throwable t)
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
addFailure in interface junit.framework.TestListenerpublic void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenertest - JUnit Test (TestCase or TestSuite)public void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenertest - JUnit Test (TestCase or TestSuite)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||