Top Fields Constructors Methods
org.junit.platform.launcher.core

pack-priv Class DiscoveryIssueCollector

extends Object
implements LauncherDiscoveryListener
Class Inheritance
All Implemented Interfaces
org.junit.platform.launcher.LauncherDiscoveryListener, org.junit.platform.engine.EngineDiscoveryListener
Static Imports
org.junit.platform.commons.util.UnrecoverableExceptions.rethrowIfUnrecoverable, org.junit.platform.engine.SelectorResolutionResult.Status.FAILED, .SelectorResolutionResult.Status.UNRESOLVED

Field Summary

Modifier and TypeField and Description
private final DiscoveryIssue.Severity
pack-priv final List<DiscoveryIssue>
private static final Logger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static FilePosition
public void
engineDiscoveryStarted(UniqueId engineId)

Overrides default org.junit.platform.launcher.LauncherDiscoveryListener.engineDiscoveryStarted.

Called when test discovery is about to be started for an engine.

private static DiscoveryIssue.Severity
public void
issueEncountered(UniqueId engineId, DiscoveryIssue issue)

Overrides default org.junit.platform.engine.EngineDiscoveryListener.issueEncountered.

Called when the engine with the supplied engineId encountered an issue during test discovery.

public void
selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)

Overrides default org.junit.platform.engine.EngineDiscoveryListener.selectorProcessed.

Must be called after a discovery selector has been processed by a test engine.

pack-priv DiscoveryIssueNotifier
private static @Nullable TestSource
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

criticalSeverityback to summary
private final DiscoveryIssue.Severity criticalSeverity
issuesback to summary
pack-priv final List<DiscoveryIssue> issues
loggerback to summary
private static final Logger logger

Constructor Detail

DiscoveryIssueCollectorback to summary
pack-priv DiscoveryIssueCollector(ConfigurationParameters configurationParameters)

Method Detail

convertback to summary
private static FilePosition convert(FilePosition position)
engineDiscoveryStartedback to summary
public void engineDiscoveryStarted(UniqueId engineId)

Overrides default org.junit.platform.launcher.LauncherDiscoveryListener.engineDiscoveryStarted.

Doc from org.junit.platform.launcher.LauncherDiscoveryListener.engineDiscoveryStarted.

Called when test discovery is about to be started for an engine.

Annotations
@Override
getCriticalSeverityback to summary
private static DiscoveryIssue.Severity getCriticalSeverity(ConfigurationParameters configurationParameters)
issueEncounteredback to summary
public void issueEncountered(UniqueId engineId, DiscoveryIssue issue)

Overrides default org.junit.platform.engine.EngineDiscoveryListener.issueEncountered.

Doc from org.junit.platform.engine.EngineDiscoveryListener.issueEncountered.

Called when the engine with the supplied engineId encountered an issue during test discovery.

Annotations
@Override
selectorProcessedback to summary
public void selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)

Overrides default org.junit.platform.engine.EngineDiscoveryListener.selectorProcessed.

Doc from org.junit.platform.engine.EngineDiscoveryListener.selectorProcessed.

Must be called after a discovery selector has been processed by a test engine.

Exceptions thrown by implementations of this method will cause test discovery of the current engine to be aborted.

Annotations
@Override
toNotifierback to summary
pack-priv DiscoveryIssueNotifier toNotifier()
toSourceback to summary
private static @Nullable TestSource toSource(DiscoverySelector selector)