FileDocCategorySizeDatePackage
JUnitTaskMirror.javaAPI DocApache Ant 1.706096Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.optional.junit

JUnitTaskMirror

public interface JUnitTaskMirror
Handles the portions of {@link JUnitTask} which need to directly access actual JUnit classes, so that junit.jar need not be on Ant's startup classpath. Neither JUnitTask.java nor JUnitTaskMirror.java nor their transitive static deps may import any junit.** classes! Specifically, need to not refer to - JUnitResultFormatter or its subclasses - JUnitVersionHelper - JUnitTestRunner Cf. JUnitTask.SplitLoader#isSplit(String) Public only to permit access from classes in this package; do not use directly.
since
1.7
see
"bug #38799"

Fields Summary
Constructors Summary
Methods Summary
public voidaddVmExit(JUnitTest test, org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror$JUnitResultFormatterMirror formatter, java.io.OutputStream out, java.lang.String message, java.lang.String testCase)
Add the formatter to be called when the jvm exits before the test suite finishs.

param
test the test.
param
formatter the fomatter to use.
param
out the output stream to use.
param
message the message to write out.
param
testCase the name of the test.

public org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror$JUnitTestRunnerMirrornewJUnitTestRunner(JUnitTest test, boolean haltOnError, boolean filterTrace, boolean haltOnFailure, boolean showOutput, boolean logTestListenerEvents, org.apache.tools.ant.AntClassLoader classLoader)
Create a new test runner for a test.

param
test the test to run.
param
haltOnError if true halt the tests if an error occurs.
param
filterTrace if true filter the stack traces.
param
haltOnFailure if true halt the test if a failure occurs.
param
showOutput if true show output.
param
logTestListenerEvents if true log test listener events.
param
classLoader the classloader to use to create the runner.
return
the test runner.

public org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror$SummaryJUnitResultFormatterMirrornewSummaryJUnitResultFormatter()
Create a summary result formatter.

return
the created formatter.