org.apache.tools.ant.taskdefs.optional.junit
public class BriefJUnitResultFormatter extends Object implements JUnitResultFormatter
See Also: FormatterElement PlainJUnitResultFormatter
Constructor Summary | |
---|---|
BriefJUnitResultFormatter()
Constructor for BriefJUnitResultFormatter. |
Method Summary | |
---|---|
void | addError(Test test, Throwable error)
A test caused an error. |
void | addFailure(Test test, Throwable t)
Interface TestListener for JUnit <= 3.4.
|
void | addFailure(Test test, AssertionFailedError t)
Interface TestListener for JUnit > 3.4.
|
void | endTest(Test test)
A test ended. |
void | endTestSuite(JUnitTest suite)
The whole testsuite ended. |
protected void | formatError(String type, Test test, Throwable error)
Format an error and print it. |
protected String | formatTest(Test test)
Format the test for printing.. |
void | setOutput(OutputStream out)
Sets the stream the formatter is supposed to write its results to. |
void | setSystemError(String err) {@inheritDoc }. |
void | setSystemOutput(String out) {@inheritDoc }. |
void | startTest(Test test)
A test started. |
void | startTestSuite(JUnitTest suite)
The whole testsuite started. |
Parameters: test a test error the error thrown by the test
A Test failed.
Parameters: test a test t the exception thrown by the test
A Test failed.
Parameters: test a test t the assertion failed by the test
Parameters: test a test
Parameters: suite the test suite
Parameters: type the type of error test the test that failed error the exception that the test threw
Parameters: test a test
Returns: the formatted testname
Parameters: out the output stream to write to
Parameters: test a test
Parameters: suite the test suite