|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junitour.UnitourResultFormatter
public class UnitourResultFormatter
Description: Ant - JunitResult Formatter, based on XMLJUnitResultFormatter from ant-optional tasks 1.5.3
$Log$ Revision 1.5 2005/07/31 03:16:04 hostlows using Java 5 generics for making code simpler: less casts, simpler for-loops Revision 1.4 2004/12/04 22:09:43 hostlows direct referencing instead of inheritance of interface XMLConstants, just for it's constants Revision 1.3 2004/12/04 22:00:22 hostlows javadoc enhancements: more comments, more details
XMLJUnitResultFormatter
Constructor Summary | |
---|---|
UnitourResultFormatter()
|
Method Summary | |
---|---|
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
implementing interface TestListener Will be called, when an error occured while running any test |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
implementing interface TestListener for JUnit > 3.4. |
void |
addFailure(junit.framework.Test test,
java.lang.Throwable t)
implementing interface TestListener Will be called, when the test failed |
void |
endTest(junit.framework.Test test)
Interface TestListener. |
void |
endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
The whole testsuite ended. |
java.lang.String |
filterStack(java.lang.String stack)
Filters stack traces: removes internal JUnit and Maven classes Just a copy of JUnitTestRunner.filterStack(String) , but modified,
to use filterLineByJunitour(java.lang.String) |
void |
setOutput(java.io.OutputStream out)
|
void |
setSystemError(java.lang.String out)
|
void |
setSystemOutput(java.lang.String out)
|
void |
startTest(junit.framework.Test t)
Interface TestListener. |
void |
startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
The whole testsuite started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitourResultFormatter()
Method Detail |
---|
public void setOutput(java.io.OutputStream out)
setOutput
in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
public void setSystemOutput(java.lang.String out)
setSystemOutput
in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
public void setSystemError(java.lang.String out)
setSystemError
in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
public void startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
startTestSuite
in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
public void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite) throws org.apache.tools.ant.BuildException
endTestSuite
in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
org.apache.tools.ant.BuildException
public void startTest(junit.framework.Test t)
A new Test is started.
startTest
in interface junit.framework.TestListener
public void endTest(junit.framework.Test test)
A Test is finished.
endTest
in interface junit.framework.TestListener
public void addFailure(junit.framework.Test test, java.lang.Throwable t)
Will be called, when the test failed
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
Will be called, when the test failed
addFailure
in interface junit.framework.TestListener
public void addError(junit.framework.Test test, java.lang.Throwable t)
Will be called, when an error occured while running any test
addError
in interface junit.framework.TestListener
public java.lang.String filterStack(java.lang.String stack)
JUnitTestRunner.filterStack(String)
, but modified,
to use filterLineByJunitour(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |