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,
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 |
fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents(TestDescriptor testDescriptor) |
private void |
fireExecutionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
private void |
fireExecutionStarted(TestDescriptor testDescriptor,
EventType eventType) |
private void |
fireExecutionStartedIncludingUnstartedAncestors(java.util.Optional<TestDescriptor> parent) |
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 boolean |
isAncestor(TestDescriptor candidate,
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,
EventType eventType) |
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, EngineExecutionListener listener)
public void testRunStarted(org.junit.runner.Description description)
testRunStarted
in class org.junit.runner.notification.RunListener
public void testIgnored(org.junit.runner.Description description)
testIgnored
in class org.junit.runner.notification.RunListener
public void testStarted(org.junit.runner.Description description)
testStarted
in class org.junit.runner.notification.RunListener
public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
testAssumptionFailure
in class org.junit.runner.notification.RunListener
public void testFailure(org.junit.runner.notification.Failure failure)
testFailure
in class org.junit.runner.notification.RunListener
public void testFinished(org.junit.runner.Description description)
testFinished
in class org.junit.runner.notification.RunListener
public void testRunFinished(org.junit.runner.Result result)
testRunFinished
in class org.junit.runner.notification.RunListener
private 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 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, EventType eventType)
private void fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents(TestDescriptor testDescriptor)
private boolean isAncestor(TestDescriptor candidate, TestDescriptor testDescriptor)
private void testFinished(TestDescriptor descriptor)
private void fireExecutionStartedIncludingUnstartedAncestors(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, EventType eventType)
private void fireExecutionFinished(TestDescriptor testDescriptor)