| org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror
All known Subclasses: org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirrorImpl, org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter, org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner,
JUnitTaskMirror | public interface JUnitTaskMirror (Code) | | Handles the portions of
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 Also: "bug #38799" |
Inner Class :public interface JUnitResultFormatterMirror | |
Inner Class :public interface SummaryJUnitResultFormatterMirror extends JUnitResultFormatterMirror | |
Inner Class :public interface JUnitTestRunnerMirror | |
Method Summary | |
void | addVmExit(JUnitTest test, JUnitResultFormatterMirror formatter, OutputStream out, String message, String testCase) Add the formatter to be called when the jvm exits before
the test suite finishs. | JUnitTestRunnerMirror | newJUnitTestRunner(JUnitTest test, boolean haltOnError, boolean filterTrace, boolean haltOnFailure, boolean showOutput, boolean logTestListenerEvents, AntClassLoader classLoader) Create a new test runner for a test.
Parameters: test - the test to run. Parameters: haltOnError - if true halt the tests if an error occurs. Parameters: filterTrace - if true filter the stack traces. Parameters: haltOnFailure - if true halt the test if a failure occurs. Parameters: showOutput - if true show output. Parameters: logTestListenerEvents - if true log test listener events. Parameters: classLoader - the classloader to use to create the runner. | SummaryJUnitResultFormatterMirror | newSummaryJUnitResultFormatter() Create a summary result formatter. |
addVmExit | void addVmExit(JUnitTest test, JUnitResultFormatterMirror formatter, OutputStream out, String message, String testCase)(Code) | | Add the formatter to be called when the jvm exits before
the test suite finishs.
Parameters: test - the test. Parameters: formatter - the fomatter to use. Parameters: out - the output stream to use. Parameters: message - the message to write out. Parameters: testCase - the name of the test. |
newJUnitTestRunner | JUnitTestRunnerMirror newJUnitTestRunner(JUnitTest test, boolean haltOnError, boolean filterTrace, boolean haltOnFailure, boolean showOutput, boolean logTestListenerEvents, AntClassLoader classLoader)(Code) | | Create a new test runner for a test.
Parameters: test - the test to run. Parameters: haltOnError - if true halt the tests if an error occurs. Parameters: filterTrace - if true filter the stack traces. Parameters: haltOnFailure - if true halt the test if a failure occurs. Parameters: showOutput - if true show output. Parameters: logTestListenerEvents - if true log test listener events. Parameters: classLoader - the classloader to use to create the runner. the test runner. |
newSummaryJUnitResultFormatter | SummaryJUnitResultFormatterMirror newSummaryJUnitResultFormatter()(Code) | | Create a summary result formatter.
the created formatter. |
|
|