Class RunListenerAdapter
java.lang.Object
org.junit.runner.notification.RunListener
org.junit.vintage.engine.execution.RunListenerAdapter
class RunListenerAdapter
extends org.junit.runner.notification.RunListener
- Since:
- 4.12
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EngineExecutionListener
private final TestRun
private final TestSourceProvider
-
Constructor Summary
ConstructorsConstructorDescriptionRunListenerAdapter
(TestRun testRun, EngineExecutionListener listener, TestSourceProvider testSourceProvider) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canFinish
(TestDescriptor testDescriptor) private boolean
canStart
(TestDescriptor testDescriptor) determineReasonForIgnoredTest
(TestDescriptor testDescriptor, org.junit.runner.Description description) private void
dynamicTestRegistered
(TestDescriptor testDescriptor) private TestDescriptor
findParent
(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) private void
fireExecutionFinished
(TestDescriptor testDescriptor) private void
fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents
(TestDescriptor testDescriptor) private void
fireExecutionSkipped
(TestDescriptor testDescriptor, String reason) private void
fireExecutionStarted
(TestDescriptor testDescriptor, EventType eventType) private void
getReason
(org.junit.Ignore annotation) private void
handleFailure
(org.junit.runner.notification.Failure failure, Function<Throwable, TestExecutionResult> resultCreator) private void
handleFailure
(org.junit.runner.notification.Failure failure, Function<Throwable, TestExecutionResult> resultCreator, TestDescriptor testDescriptor) private boolean
isAncestor
(TestDescriptor candidate, TestDescriptor testDescriptor) private TestDescriptor
lookupOrRegisterCurrentTestDescriptor
(org.junit.runner.Description description) private TestDescriptor
lookupOrRegisterNextTestDescriptor
(org.junit.runner.Description description) private TestDescriptor
lookupOrRegisterTestDescriptor
(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) private VintageTestDescriptor
registerDynamicTestDescriptor
(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) private void
reportContainerFinished
(TestDescriptor containerTestDescriptor) void
testAssumptionFailure
(org.junit.runner.notification.Failure failure) void
testFailure
(org.junit.runner.notification.Failure failure) private void
testFinished
(TestDescriptor descriptor) void
testFinished
(org.junit.runner.Description description) private void
testIgnored
(TestDescriptor testDescriptor, String reason) void
testIgnored
(org.junit.runner.Description description) void
testRunFinished
(org.junit.runner.Result result) void
testRunStarted
(org.junit.runner.Description description) private void
testStarted
(TestDescriptor testDescriptor, EventType eventType) void
testStarted
(org.junit.runner.Description description) void
testSuiteFinished
(org.junit.runner.Description description) void
testSuiteStarted
(org.junit.runner.Description description)
-
Field Details
-
testRun
-
listener
-
testSourceProvider
-
uniqueIdExtractor
-
-
Constructor Details
-
RunListenerAdapter
RunListenerAdapter(TestRun testRun, EngineExecutionListener listener, TestSourceProvider testSourceProvider)
-
-
Method Details
-
testRunStarted
public void testRunStarted(org.junit.runner.Description description) - Overrides:
testRunStarted
in classorg.junit.runner.notification.RunListener
-
testSuiteStarted
public void testSuiteStarted(org.junit.runner.Description description) - Overrides:
testSuiteStarted
in classorg.junit.runner.notification.RunListener
-
testIgnored
public void testIgnored(org.junit.runner.Description description) - Overrides:
testIgnored
in classorg.junit.runner.notification.RunListener
-
testStarted
public void testStarted(org.junit.runner.Description description) - Overrides:
testStarted
in classorg.junit.runner.notification.RunListener
-
testAssumptionFailure
public void testAssumptionFailure(org.junit.runner.notification.Failure failure) - Overrides:
testAssumptionFailure
in classorg.junit.runner.notification.RunListener
-
testFailure
public void testFailure(org.junit.runner.notification.Failure failure) - Overrides:
testFailure
in classorg.junit.runner.notification.RunListener
-
testFinished
public void testFinished(org.junit.runner.Description description) - Overrides:
testFinished
in classorg.junit.runner.notification.RunListener
-
testSuiteFinished
public void testSuiteFinished(org.junit.runner.Description description) - Overrides:
testSuiteFinished
in classorg.junit.runner.notification.RunListener
-
testRunFinished
public void testRunFinished(org.junit.runner.Result result) - Overrides:
testRunFinished
in classorg.junit.runner.notification.RunListener
-
reportContainerFinished
-
lookupOrRegisterNextTestDescriptor
-
lookupOrRegisterCurrentTestDescriptor
private TestDescriptor lookupOrRegisterCurrentTestDescriptor(org.junit.runner.Description description) -
lookupOrRegisterTestDescriptor
private TestDescriptor lookupOrRegisterTestDescriptor(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) -
registerDynamicTestDescriptor
private VintageTestDescriptor registerDynamicTestDescriptor(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) -
findParent
private TestDescriptor findParent(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) -
handleFailure
private void handleFailure(org.junit.runner.notification.Failure failure, Function<Throwable, TestExecutionResult> resultCreator) -
handleFailure
private void handleFailure(org.junit.runner.notification.Failure failure, Function<Throwable, TestExecutionResult> resultCreator, TestDescriptor testDescriptor) -
testIgnored
-
determineReasonForIgnoredTest
private Optional<String> determineReasonForIgnoredTest(TestDescriptor testDescriptor, org.junit.runner.Description description) -
getReason
-
dynamicTestRegistered
-
testStarted
-
fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents
private void fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents(TestDescriptor testDescriptor) -
isAncestor
-
testFinished
-
fireExecutionStartedIncludingUnstartedAncestors
-
canStart
-
canFinish
-
fireExecutionSkipped
-
fireExecutionStarted
-
fireExecutionFinished
-