class StreamInterceptingTestExecutionListener extends java.lang.Object implements TestExecutionListenerRegistry.EagerTestExecutionListener
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiConsumer<TestIdentifier,ReportEntry> |
reporter |
private java.util.Optional<StreamInterceptor> |
stderrInterceptor |
private java.util.Optional<StreamInterceptor> |
stdoutInterceptor |
Modifier | Constructor and Description |
---|---|
private |
StreamInterceptingTestExecutionListener(java.util.Optional<StreamInterceptor> stdoutInterceptor,
java.util.Optional<StreamInterceptor> stderrInterceptor,
java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter) |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dynamicTestRegistered, executionFinished, executionSkipped, executionStarted, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
private final java.util.Optional<StreamInterceptor> stdoutInterceptor
private final java.util.Optional<StreamInterceptor> stderrInterceptor
private final java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter
private StreamInterceptingTestExecutionListener(java.util.Optional<StreamInterceptor> stdoutInterceptor, java.util.Optional<StreamInterceptor> stderrInterceptor, java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter)
static java.util.Optional<StreamInterceptingTestExecutionListener> create(ConfigurationParameters configurationParameters, java.util.function.BiConsumer<TestIdentifier,ReportEntry> reporter)
void unregister()
public void executionJustStarted(TestIdentifier testIdentifier)
executionJustStarted
in interface TestExecutionListenerRegistry.EagerTestExecutionListener
public void executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
executionJustFinished
in interface TestExecutionListenerRegistry.EagerTestExecutionListener