Class JUnitCoreWrapper
java.lang.Object
org.apache.maven.surefire.junitcore.JUnitCoreWrapper
Encapsulates access to JUnitCore
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConsoleLogger
private final JUnitCoreParameters
private final Notifier
-
Constructor Summary
ConstructorsConstructorDescriptionJUnitCoreWrapper
(Notifier notifier, JUnitCoreParameters jUnitCoreParameters, ConsoleLogger consoleStream) -
Method Summary
Modifier and TypeMethodDescriptionprivate org.junit.runner.Computer
private JUnitCoreWrapper.JUnitCore
createJUnitCore
(Notifier notifier, Collection<org.junit.runner.notification.RunListener> listeners) private void
createRequestAndRun
(org.junit.runner.manipulation.Filter filter, org.junit.runner.Computer computer, JUnitCoreWrapper.JUnitCore junitCore, Class<?>... classesToRun) private void
execute
(TestsToRun testsToRun, boolean useIterated, Collection<org.junit.runner.notification.RunListener> listeners, org.junit.runner.manipulation.Filter filter) (package private) void
execute
(TestsToRun testsToRun, 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, Collection<org.junit.runner.notification.RunListener> listeners) private void
executeLazy
(TestsToRun testsToRun, boolean useIterated, org.junit.runner.manipulation.Filter filter, Collection<org.junit.runner.notification.RunListener> listeners)
-
Field Details
-
notifier
-
jUnitCoreParameters
-
consoleStream
-
-
Constructor Details
-
JUnitCoreWrapper
JUnitCoreWrapper(Notifier notifier, JUnitCoreParameters jUnitCoreParameters, ConsoleLogger consoleStream)
-
-
Method Details
-
execute
void execute(TestsToRun testsToRun, org.junit.runner.manipulation.Filter filter) throws TestSetFailedException - Throws:
TestSetFailedException
-
execute
void execute(TestsToRun testsToRun, 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, Collection<org.junit.runner.notification.RunListener> listeners, org.junit.runner.manipulation.Filter filter) throws TestSetFailedException - Throws:
TestSetFailedException
-
createJUnitCore
private JUnitCoreWrapper.JUnitCore createJUnitCore(Notifier notifier, Collection<org.junit.runner.notification.RunListener> listeners) -
executeEager
private void executeEager(TestsToRun testsToRun, org.junit.runner.manipulation.Filter filter, 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, 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, Class<?>... classesToRun) throws TestSetFailedException - Throws:
TestSetFailedException
-
createComputer
private org.junit.runner.Computer createComputer()
-