Package org.junit.platform.console.tasks
Class ConsoleTestExecutor
- java.lang.Object
-
- org.junit.platform.console.tasks.ConsoleTestExecutor
-
@API(status=INTERNAL, since="1.0") public class ConsoleTestExecutor extends java.lang.Object
- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<Launcher>
launcherSupplier
private CommandLineOptions
options
-
Constructor Summary
Constructors Constructor Description ConsoleTestExecutor(CommandLineOptions options)
ConsoleTestExecutor(CommandLineOptions options, java.util.function.Supplier<Launcher> launcherSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Optional<java.lang.ClassLoader>
createCustomClassLoader()
private java.util.Optional<TestExecutionListener>
createDetailsPrintingListener(java.io.PrintWriter out)
private java.util.Optional<TestExecutionListener>
createXmlWritingListener(java.io.PrintWriter out)
TestExecutionSummary
execute(java.io.PrintWriter out)
private TestExecutionSummary
executeTests(java.io.PrintWriter out)
private void
printSummary(TestExecutionSummary summary, java.io.PrintWriter out)
private SummaryGeneratingListener
registerListeners(java.io.PrintWriter out, Launcher launcher)
private java.net.URL
toURL(java.nio.file.Path path)
-
-
-
Field Detail
-
options
private final CommandLineOptions options
-
launcherSupplier
private final java.util.function.Supplier<Launcher> launcherSupplier
-
-
Constructor Detail
-
ConsoleTestExecutor
public ConsoleTestExecutor(CommandLineOptions options)
-
ConsoleTestExecutor
ConsoleTestExecutor(CommandLineOptions options, java.util.function.Supplier<Launcher> launcherSupplier)
-
-
Method Detail
-
execute
public TestExecutionSummary execute(java.io.PrintWriter out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
executeTests
private TestExecutionSummary executeTests(java.io.PrintWriter out)
-
createCustomClassLoader
private java.util.Optional<java.lang.ClassLoader> createCustomClassLoader()
-
toURL
private java.net.URL toURL(java.nio.file.Path path)
-
registerListeners
private SummaryGeneratingListener registerListeners(java.io.PrintWriter out, Launcher launcher)
-
createDetailsPrintingListener
private java.util.Optional<TestExecutionListener> createDetailsPrintingListener(java.io.PrintWriter out)
-
createXmlWritingListener
private java.util.Optional<TestExecutionListener> createXmlWritingListener(java.io.PrintWriter out)
-
printSummary
private void printSummary(TestExecutionSummary summary, java.io.PrintWriter out)
-
-