Package org.junit.platform.launcher.core
Class StreamInterceptingTestExecutionListener
- java.lang.Object
-
- org.junit.platform.launcher.core.StreamInterceptingTestExecutionListener
-
- All Implemented Interfaces:
CompositeTestExecutionListener.EagerTestExecutionListener
,TestExecutionListener
class StreamInterceptingTestExecutionListener extends java.lang.Object implements CompositeTestExecutionListener.EagerTestExecutionListener
- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BiConsumer<TestIdentifier,ReportEntry>
reporter
private java.util.Optional<StreamInterceptor>
stderrInterceptor
private java.util.Optional<StreamInterceptor>
stdoutInterceptor
-
Constructor Summary
Constructors Modifier Constructor Description private
StreamInterceptingTestExecutionListener(java.util.Optional<StreamInterceptor> stdoutInterceptor, java.util.Optional<StreamInterceptor> stderrInterceptor, java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.Optional<StreamInterceptingTestExecutionListener>
create(ConfigurationParameters configurationParameters, java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter)
void
executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
void
executionJustStarted(TestIdentifier testIdentifier)
(package private) void
unregister()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.platform.launcher.TestExecutionListener
dynamicTestRegistered, executionFinished, executionSkipped, executionStarted, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
-
-
-
-
Field Detail
-
stdoutInterceptor
private final java.util.Optional<StreamInterceptor> stdoutInterceptor
-
stderrInterceptor
private final java.util.Optional<StreamInterceptor> stderrInterceptor
-
reporter
private final java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter
-
-
Constructor Detail
-
StreamInterceptingTestExecutionListener
private StreamInterceptingTestExecutionListener(java.util.Optional<StreamInterceptor> stdoutInterceptor, java.util.Optional<StreamInterceptor> stderrInterceptor, java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter)
-
-
Method Detail
-
create
static java.util.Optional<StreamInterceptingTestExecutionListener> create(ConfigurationParameters configurationParameters, java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter)
-
unregister
void unregister()
-
executionJustStarted
public void executionJustStarted(TestIdentifier testIdentifier)
- Specified by:
executionJustStarted
in interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-
executionJustFinished
public void executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
- Specified by:
executionJustFinished
in interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-
-