Top Description Fields Constructors Methods
org.junit.platform.testkit.engine

public Class ExecutionRecorder

extends Object
implements EngineExecutionListener
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.EngineExecutionListener
Annotations
@API
status:MAINTAINED
since:1.7
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

ExecutionRecorder is an EngineExecutionListener that records data from every event that occurs during the engine execution lifecycle and provides functionality for retrieving execution state via EngineExecutionResults.
Since
1.4
See Also
EngineExecutionResults, Event, Execution

Field Summary

Modifier and TypeField and Description
private final List<Event>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
dynamicTestRegistered(TestDescriptor testDescriptor)

Overrides default org.junit.platform.engine.EngineExecutionListener.dynamicTestRegistered.

Record an Event for a dynamically registered container or test.

public void
executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)

Overrides default org.junit.platform.engine.EngineExecutionListener.executionFinished.

Record an Event for a container or test that completed with the provided TestExecutionResult.

public void
executionSkipped(TestDescriptor testDescriptor, String reason)

Overrides default org.junit.platform.engine.EngineExecutionListener.executionSkipped.

Record an Event for a container or test that was skipped.

public void
executionStarted(TestDescriptor testDescriptor)

Overrides default org.junit.platform.engine.EngineExecutionListener.executionStarted.

Record an Event for a container or test that started.

public void
public EngineExecutionResults

Returns:

the EngineExecutionResults containing all current state information
getExecutionResults
()

Get the state of the engine's execution in the form of EngineExecutionResults.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventsback to summary
private final List<Event> events

Constructor Detail

ExecutionRecorderback to summary
public ExecutionRecorder()

Method Detail

dynamicTestRegisteredback to summary
public void dynamicTestRegistered(TestDescriptor testDescriptor)

Overrides default org.junit.platform.engine.EngineExecutionListener.dynamicTestRegistered.

Record an Event for a dynamically registered container or test.

Annotations
@Override
executionFinishedback to summary
public void executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)

Overrides default org.junit.platform.engine.EngineExecutionListener.executionFinished.

Record an Event for a container or test that completed with the provided TestExecutionResult.

Annotations
@Override
executionSkippedback to summary
public void executionSkipped(TestDescriptor testDescriptor, String reason)

Overrides default org.junit.platform.engine.EngineExecutionListener.executionSkipped.

Record an Event for a container or test that was skipped.

Annotations
@Override
executionStartedback to summary
public void executionStarted(TestDescriptor testDescriptor)

Overrides default org.junit.platform.engine.EngineExecutionListener.executionStarted.

Record an Event for a container or test that started.

Annotations
@Override
fileEntryPublishedback to summary
public void fileEntryPublished(TestDescriptor testDescriptor, FileEntry file)

Overrides default org.junit.platform.engine.EngineExecutionListener.fileEntryPublished.

Record an Event for a published FileEntry.

Annotations
@API
status:MAINTAINED
since:1.13.3
@Override
Since
1.12
getExecutionResultsback to summary
public EngineExecutionResults getExecutionResults()

Get the state of the engine's execution in the form of EngineExecutionResults.

Returns:EngineExecutionResults

the EngineExecutionResults containing all current state information

reportingEntryPublishedback to summary
public void reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)

Overrides default org.junit.platform.engine.EngineExecutionListener.reportingEntryPublished.

Record an Event for a published ReportEntry.

Annotations
@Override