org.apache.tools.ant.taskdefs.optional.junit
public interface JUnitTaskMirror
Since: 1.7
See Also: "bug #38799"
Nested Class Summary | |
---|---|
static interface | JUnitTaskMirror.JUnitResultFormatterMirror The interface that JUnitResultFormatter extends. |
static interface | JUnitTaskMirror.JUnitTestRunnerMirror Interface that test runners implement. |
static interface | JUnitTaskMirror.SummaryJUnitResultFormatterMirror The interface that SummaryJUnitResultFormatter extends. |
Method Summary | |
---|---|
void | addVmExit(JUnitTest test, JUnitTaskMirror.JUnitResultFormatterMirror formatter, OutputStream out, String message, String testCase)
Add the formatter to be called when the jvm exits before
the test suite finishs. |
JUnitTaskMirror.JUnitTestRunnerMirror | newJUnitTestRunner(JUnitTest test, String[] methods, boolean haltOnError, boolean filterTrace, boolean haltOnFailure, boolean showOutput, boolean logTestListenerEvents, AntClassLoader classLoader)
Create a new test runner for a test. |
JUnitTaskMirror.SummaryJUnitResultFormatterMirror | newSummaryJUnitResultFormatter()
Create a summary result formatter. |
Parameters: test the test. formatter the fomatter to use. out the output stream to use. message the message to write out. testCase the name of the test.
Parameters: test the test to run. methods names of the test methods to be run. haltOnError if true halt the tests if an error occurs. filterTrace if true filter the stack traces. haltOnFailure if true halt the test if a failure occurs. showOutput if true show output. logTestListenerEvents if true log test listener events. classLoader the classloader to use to create the runner.
Returns: the test runner.
Returns: the created formatter.