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
ConstructorsModifierConstructorDescriptionprivateStreamInterceptingTestExecutionListener(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) voidexecutionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) voidexecutionJustStarted(TestIdentifier testIdentifier) (package private) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
executionJustStartedin interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-
executionJustFinished
public void executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) - Specified by:
executionJustFinishedin interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-