Class JUnitTaskMirrorImpl
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirrorImpl
- All Implemented Interfaces:
- JUnitTaskMirror
Implementation of the part of the junit task which can directly refer to junit.* classes.
 Public only to permit use of reflection; do not use directly.
- Since:
- 1.7
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirrorJUnitTaskMirror.JUnitResultFormatterMirror, JUnitTaskMirror.JUnitTestRunnerMirror, JUnitTaskMirror.SummaryJUnitResultFormatterMirror
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddVmExit(JUnitTest test, JUnitTaskMirror.JUnitResultFormatterMirror aFormatter, OutputStream out, String message, String testCase) Add the formatter to be called when the jvm exits before the test suite finishes.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.Create a summary result formatter.
- 
Constructor Details- 
JUnitTaskMirrorImplConstructor.- Parameters:
- task- the junittask that uses this mirror.
 
 
- 
- 
Method Details- 
addVmExitpublic void addVmExit(JUnitTest test, JUnitTaskMirror.JUnitResultFormatterMirror aFormatter, OutputStream out, String message, String testCase) Add the formatter to be called when the jvm exits before the test suite finishes..- Specified by:
- addVmExitin interface- JUnitTaskMirror
- Parameters:
- test- the test.
- aFormatter- the formatter to use.
- out- the output stream to use.
- message- the message to write out.
- testCase- the name of the test.
 
- 
newJUnitTestRunnerpublic 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..- Specified by:
- newJUnitTestRunnerin interface- JUnitTaskMirror
- 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.
 
- 
newSummaryJUnitResultFormatterCreate a summary result formatter..- Specified by:
- newSummaryJUnitResultFormatterin interface- JUnitTaskMirror
- Returns:
- the created formatter.
 
 
-