Class JUnitCoreWrapper
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.JUnitCoreWrapper
-
final class JUnitCoreWrapper extends java.lang.Object
Encapsulates access to JUnitCore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
JUnitCoreWrapper.JUnitCore
-
Field Summary
Fields Modifier and Type Field Description private ConsoleStream
consoleStream
private JUnitCoreParameters
jUnitCoreParameters
private Notifier
notifier
-
Constructor Summary
Constructors Constructor Description JUnitCoreWrapper(Notifier notifier, JUnitCoreParameters jUnitCoreParameters, ConsoleStream consoleStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.junit.runner.Computer
createComputer()
private JUnitCoreWrapper.JUnitCore
createJUnitCore(Notifier notifier, java.util.Collection<org.junit.runner.notification.RunListener> listeners)
private void
createRequestAndRun(org.junit.runner.manipulation.Filter filter, org.junit.runner.Computer computer, JUnitCoreWrapper.JUnitCore junitCore, java.lang.Class<?>... classesToRun)
private void
execute(TestsToRun testsToRun, boolean useIterated, java.util.Collection<org.junit.runner.notification.RunListener> listeners, org.junit.runner.manipulation.Filter filter)
(package private) void
execute(TestsToRun testsToRun, java.util.Collection<org.junit.runner.notification.RunListener> listeners, org.junit.runner.manipulation.Filter filter)
(package private) void
execute(TestsToRun testsToRun, org.junit.runner.manipulation.Filter filter)
private void
executeEager(TestsToRun testsToRun, org.junit.runner.manipulation.Filter filter, java.util.Collection<org.junit.runner.notification.RunListener> listeners)
private void
executeLazy(TestsToRun testsToRun, boolean useIterated, org.junit.runner.manipulation.Filter filter, java.util.Collection<org.junit.runner.notification.RunListener> listeners)
-
-
-
Field Detail
-
notifier
private final Notifier notifier
-
jUnitCoreParameters
private final JUnitCoreParameters jUnitCoreParameters
-
consoleStream
private final ConsoleStream consoleStream
-
-
Constructor Detail
-
JUnitCoreWrapper
JUnitCoreWrapper(Notifier notifier, JUnitCoreParameters jUnitCoreParameters, ConsoleStream consoleStream)
-
-
Method Detail
-
execute
void execute(TestsToRun testsToRun, org.junit.runner.manipulation.Filter filter) throws TestSetFailedException
- Throws:
TestSetFailedException
-
execute
void execute(TestsToRun testsToRun, java.util.Collection<org.junit.runner.notification.RunListener> listeners, org.junit.runner.manipulation.Filter filter) throws TestSetFailedException
- Throws:
TestSetFailedException
-
execute
private void execute(TestsToRun testsToRun, boolean useIterated, java.util.Collection<org.junit.runner.notification.RunListener> listeners, org.junit.runner.manipulation.Filter filter) throws TestSetFailedException
- Throws:
TestSetFailedException
-
createJUnitCore
private JUnitCoreWrapper.JUnitCore createJUnitCore(Notifier notifier, java.util.Collection<org.junit.runner.notification.RunListener> listeners)
-
executeEager
private void executeEager(TestsToRun testsToRun, org.junit.runner.manipulation.Filter filter, java.util.Collection<org.junit.runner.notification.RunListener> listeners) throws TestSetFailedException
- Throws:
TestSetFailedException
-
executeLazy
private void executeLazy(TestsToRun testsToRun, boolean useIterated, org.junit.runner.manipulation.Filter filter, java.util.Collection<org.junit.runner.notification.RunListener> listeners) throws TestSetFailedException
- Throws:
TestSetFailedException
-
createRequestAndRun
private void createRequestAndRun(org.junit.runner.manipulation.Filter filter, org.junit.runner.Computer computer, JUnitCoreWrapper.JUnitCore junitCore, java.lang.Class<?>... classesToRun) throws TestSetFailedException
- Throws:
TestSetFailedException
-
createComputer
private org.junit.runner.Computer createComputer()
-
-