org.apache.tools.ant.taskdefs.optional.junit

Interface JUnitResultFormatter

public interface JUnitResultFormatter extends TestListener, JUnitTaskMirror.JUnitResultFormatterMirror

This Interface describes classes that format the results of a JUnit testrun.
Method Summary
voidendTestSuite(JUnitTest suite)
The whole testsuite ended.
voidsetOutput(OutputStream out)
Sets the stream the formatter is supposed to write its results to.
voidsetSystemError(String err)
This is what the test has written to System.err
voidsetSystemOutput(String out)
This is what the test has written to System.out
voidstartTestSuite(JUnitTest suite)
The whole testsuite started.

Method Detail

endTestSuite

public void endTestSuite(JUnitTest suite)
The whole testsuite ended.

Parameters: suite the suite.

Throws: BuildException on error.

setOutput

public void setOutput(OutputStream out)
Sets the stream the formatter is supposed to write its results to.

Parameters: out the output stream to use.

setSystemError

public void setSystemError(String err)
This is what the test has written to System.err

Parameters: err the string to write.

setSystemOutput

public void setSystemOutput(String out)
This is what the test has written to System.out

Parameters: out the string to write.

startTestSuite

public void startTestSuite(JUnitTest suite)
The whole testsuite started.

Parameters: suite the suite.

Throws: BuildException on error.