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

Interface JUnitResultFormatter

All Superinterfaces:
TestListener
Known Implementing Classes:
BriefJUnitResultFormatter, PlainJUnitResultFormatter, SummaryJUnitResultFormatter, XMLJUnitResultFormatter

public interface JUnitResultFormatter
extends TestListener

This Interface describes classes that format the results of a JUnit testrun.

Method Summary

void
endTestSuite(JUnitTest suite)
The whole testsuite ended.
void
setOutput(OutputStream out)
Sets the stream the formatter is supposed to write its results to.
void
setSystemError(String err)
This is what the test has written to System.err
void
setSystemOutput(String out)
This is what the test has written to System.out
void
startTestSuite(JUnitTest suite)
The whole testsuite started.

Method Details

endTestSuite

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

setOutput

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

setSystemError

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

setSystemOutput

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

startTestSuite

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

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.