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>reporterprivate java.util.Optional<StreamInterceptor>stderrInterceptorprivate java.util.Optional<StreamInterceptor>stdoutInterceptor
-
Constructor Summary
Constructors Modifier Constructor Description privateStreamInterceptingTestExecutionListener(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)voidexecutionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)voidexecutionJustStarted(TestIdentifier testIdentifier)(package private) voidunregister()-
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, fileEntryPublished, 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:
executionJustStartedin interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-
executionJustFinished
public void executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
- Specified by:
executionJustFinishedin interfaceCompositeTestExecutionListener.EagerTestExecutionListener
-
-