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

Class SummaryJUnitResultFormatter

public class SummaryJUnitResultFormatter extends Object implements JUnitResultFormatter, JUnitTaskMirror.SummaryJUnitResultFormatterMirror

Prints short summary output of the test to Ant's logging system.
Constructor Summary
SummaryJUnitResultFormatter()
Empty
Method Summary
voidaddError(Test test, Throwable t)
Empty
voidaddFailure(Test test, Throwable t)
Empty
voidaddFailure(Test test, AssertionFailedError t)
Interface TestListener for JUnit > 3.4.
voidendTest(Test test)
Empty
voidendTestSuite(JUnitTest suite)
The whole testsuite ended.
voidsetOutput(OutputStream out)
{@inheritDoc}.
voidsetSystemError(String err)
{@inheritDoc}.
voidsetSystemOutput(String out)
{@inheritDoc}.
voidsetWithOutAndErr(boolean value)
Should the output to System.out and System.err be written to the summary.
voidstartTest(Test t)
Empty
voidstartTestSuite(JUnitTest suite)
The testsuite started.

Constructor Detail

SummaryJUnitResultFormatter

public SummaryJUnitResultFormatter()
Empty

Method Detail

addError

public void addError(Test test, Throwable t)
Empty

Parameters: test not used. t not used.

addFailure

public void addFailure(Test test, Throwable t)
Empty

Parameters: test not used. t not used.

addFailure

public void addFailure(Test test, AssertionFailedError t)
Interface TestListener for JUnit > 3.4.

A Test failed.

Parameters: test not used. t not used.

endTest

public void endTest(Test test)
Empty

Parameters: test not used.

endTestSuite

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

Parameters: suite the testsuite.

Throws: BuildException if there is an error.

setOutput

public void setOutput(OutputStream out)
{@inheritDoc}.

setSystemError

public void setSystemError(String err)
{@inheritDoc}.

setSystemOutput

public void setSystemOutput(String out)
{@inheritDoc}.

setWithOutAndErr

public void setWithOutAndErr(boolean value)
Should the output to System.out and System.err be written to the summary.

Parameters: value if true write System.out and System.err to the summary.

startTest

public void startTest(Test t)
Empty

Parameters: t not used.

startTestSuite

public void startTestSuite(JUnitTest suite)
The testsuite started.

Parameters: suite the testsuite.