Package de.hybris.ant.taskdefs.yunit
Class JUnitTaskMirrorImpl
java.lang.Object
de.hybris.ant.taskdefs.yunit.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:
-
JUnitTaskMirror- "bug #38799"
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.ant.taskdefs.yunit.JUnitTaskMirror
JUnitTaskMirror.JUnitResultFormatterMirror, JUnitTaskMirror.JUnitTestRunnerMirror, JUnitTaskMirror.SummaryJUnitResultFormatterMirror -
Constructor Summary
Constructors -
Method Summary
Modifier 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 finishs.newJUnitTestRunner(String platformHome, String classpath, String webClasspath, JUnitTest test, boolean haltOnError, boolean filterTrace, boolean haltOnFailure, boolean showOutput, boolean logTestListenerEvents, org.apache.tools.ant.AntClassLoader classLoader, boolean suppressJunitTenant) Create a new test runner for a test.Create a summary result formatter.
-
Constructor Details
-
JUnitTaskMirrorImpl
Constructor.- Parameters:
task- the junittask that uses this mirror.
-
-
Method Details
-
addVmExit
public 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 finishs..- Specified by:
addVmExitin interfaceJUnitTaskMirror- Parameters:
test- the test.aFormatter- the fomatter to use.out- the output stream to use.message- the message to write out.testCase- the name of the test.
-
newJUnitTestRunner
public JUnitTaskMirror.JUnitTestRunnerMirror newJUnitTestRunner(String platformHome, String classpath, String webClasspath, JUnitTest test, boolean haltOnError, boolean filterTrace, boolean haltOnFailure, boolean showOutput, boolean logTestListenerEvents, org.apache.tools.ant.AntClassLoader classLoader, boolean suppressJunitTenant) Create a new test runner for a test..- Specified by:
newJUnitTestRunnerin interfaceJUnitTaskMirrortest- the test to 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.suppressJunitTenant- if true, junit tenant will not be started- Returns:
- the test runner.
-
newSummaryJUnitResultFormatter
Create a summary result formatter..- Specified by:
newSummaryJUnitResultFormatterin interfaceJUnitTaskMirror- Returns:
- the created formatter.
-