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 Object
implements CompositeTestExecutionListener.EagerTestExecutionListener
- Since:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiConsumer
<TestIdentifier, ReportEntry> private final Optional
<StreamInterceptor> private final Optional
<StreamInterceptor> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
StreamInterceptingTestExecutionListener
(Optional<StreamInterceptor> stdoutInterceptor, Optional<StreamInterceptor> stderrInterceptor, BiConsumer<TestIdentifier, ReportEntry> reporter) -
Method Summary
Modifier and TypeMethodDescription(package private) static Optional
<StreamInterceptingTestExecutionListener> create
(ConfigurationParameters configurationParameters, BiConsumer<TestIdentifier, ReportEntry> reporter) void
executionJustFinished
(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) void
executionJustStarted
(TestIdentifier testIdentifier) (package private) void
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 Details
-
stdoutInterceptor
-
stderrInterceptor
-
reporter
-
-
Constructor Details
-
StreamInterceptingTestExecutionListener
private StreamInterceptingTestExecutionListener(Optional<StreamInterceptor> stdoutInterceptor, Optional<StreamInterceptor> stderrInterceptor, BiConsumer<TestIdentifier, ReportEntry> reporter)
-
-
Method Details
-
create
static Optional<StreamInterceptingTestExecutionListener> create(ConfigurationParameters configurationParameters, BiConsumer<TestIdentifier, ReportEntry> reporter) -
unregister
void unregister() -
executionJustStarted
- Specified by:
executionJustStarted
in interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-
executionJustFinished
public void executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) - Specified by:
executionJustFinished
in interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-