class RunListenerAdapter
extends org.junit.runner.notification.RunListener
| Modifier and Type | Field and Description |
|---|---|
private EngineExecutionListener |
listener |
private TestRun |
testRun |
private java.util.function.Function<org.junit.runner.Description,java.lang.String> |
uniqueIdExtractor |
| Constructor and Description |
|---|
RunListenerAdapter(TestRun testRun,
Logger logger,
EngineExecutionListener listener) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
canFinish(TestDescriptor testDescriptor) |
private boolean |
canStart(TestDescriptor testDescriptor) |
private java.lang.String |
determineReasonForIgnoredTest(org.junit.runner.Description description) |
private void |
dynamicTestRegistered(TestDescriptor testDescriptor) |
private TestDescriptor |
findParent(org.junit.runner.Description description) |
private void |
fireExecutionFinished(TestDescriptor testDescriptor) |
private void |
fireExecutionFinishedIncludingAncestorsWithoutPendingChildren(java.util.Optional<TestDescriptor> parent) |
private void |
fireExecutionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
private void |
fireExecutionStarted(TestDescriptor testDescriptor) |
private void |
fireExecutionStartedIncludingUnstartedAncestors(java.util.Optional<TestDescriptor> parent) |
private void |
fireMissingContainerEvents(TestDescriptor testDescriptor) |
private void |
handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator) |
private void |
handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator,
TestDescriptor testDescriptor) |
private TestDescriptor |
lookupOrRegisterTestDescriptor(org.junit.runner.Description description) |
private VintageTestDescriptor |
registerDynamicTestDescriptor(org.junit.runner.Description description) |
void |
testAssumptionFailure(org.junit.runner.notification.Failure failure) |
void |
testFailure(org.junit.runner.notification.Failure failure) |
void |
testFinished(org.junit.runner.Description description) |
private void |
testFinished(TestDescriptor descriptor) |
void |
testIgnored(org.junit.runner.Description description) |
private void |
testIgnored(TestDescriptor testDescriptor,
java.lang.String reason) |
void |
testRunFinished(org.junit.runner.Result result) |
void |
testRunStarted(org.junit.runner.Description description) |
void |
testStarted(org.junit.runner.Description description) |
private void |
testStarted(TestDescriptor testDescriptor) |
private final TestRun testRun
private final EngineExecutionListener listener
private final java.util.function.Function<org.junit.runner.Description,java.lang.String> uniqueIdExtractor
RunListenerAdapter(TestRun testRun, Logger logger, EngineExecutionListener listener)
public void testRunStarted(org.junit.runner.Description description)
testRunStarted in class org.junit.runner.notification.RunListenerpublic void testIgnored(org.junit.runner.Description description)
testIgnored in class org.junit.runner.notification.RunListenerpublic void testStarted(org.junit.runner.Description description)
testStarted in class org.junit.runner.notification.RunListenerpublic void testAssumptionFailure(org.junit.runner.notification.Failure failure)
testAssumptionFailure in class org.junit.runner.notification.RunListenerpublic void testFailure(org.junit.runner.notification.Failure failure)
testFailure in class org.junit.runner.notification.RunListenerpublic void testFinished(org.junit.runner.Description description)
testFinished in class org.junit.runner.notification.RunListenerpublic void testRunFinished(org.junit.runner.Result result)
testRunFinished in class org.junit.runner.notification.RunListenerprivate TestDescriptor lookupOrRegisterTestDescriptor(org.junit.runner.Description description)
private VintageTestDescriptor registerDynamicTestDescriptor(org.junit.runner.Description description)
private TestDescriptor findParent(org.junit.runner.Description description)
private void handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator)
private void handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator,
TestDescriptor testDescriptor)
private void fireMissingContainerEvents(TestDescriptor testDescriptor)
private void testIgnored(TestDescriptor testDescriptor, java.lang.String reason)
private java.lang.String determineReasonForIgnoredTest(org.junit.runner.Description description)
private void dynamicTestRegistered(TestDescriptor testDescriptor)
private void testStarted(TestDescriptor testDescriptor)
private void testFinished(TestDescriptor descriptor)
private void fireExecutionStartedIncludingUnstartedAncestors(java.util.Optional<TestDescriptor> parent)
private void fireExecutionFinishedIncludingAncestorsWithoutPendingChildren(java.util.Optional<TestDescriptor> parent)
private boolean canStart(TestDescriptor testDescriptor)
private boolean canFinish(TestDescriptor testDescriptor)
private void fireExecutionSkipped(TestDescriptor testDescriptor, java.lang.String reason)
private void fireExecutionStarted(TestDescriptor testDescriptor)
private void fireExecutionFinished(TestDescriptor testDescriptor)