Package org.junit.platform.launcher.core
Class DiscoveryIssueCollector
- java.lang.Object
-
- org.junit.platform.launcher.core.DiscoveryIssueCollector
-
- All Implemented Interfaces:
EngineDiscoveryListener,LauncherDiscoveryListener
class DiscoveryIssueCollector extends java.lang.Object implements LauncherDiscoveryListener
-
-
Field Summary
Fields Modifier and Type Field Description private ConfigurationParametersconfigurationParameters(package private) java.util.List<DiscoveryIssue>issuesprivate static org.junit.platform.commons.logging.Loggerlogger-
Fields inherited from interface org.junit.platform.launcher.LauncherDiscoveryListener
NOOP
-
-
Constructor Summary
Constructors Constructor Description DiscoveryIssueCollector(ConfigurationParameters configurationParameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static FilePositionconvert(FilePosition position)voidengineDiscoveryStarted(UniqueId engineId)Called when test discovery is about to be started for an engine.private DiscoveryIssue.SeveritygetCriticalSeverity()voidissueEncountered(UniqueId engineId, DiscoveryIssue issue)Called when the engine with the suppliedengineIdencountered an issue during test discovery.voidselectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)Must be called after a discovery selector has been processed by a test engine.(package private) DiscoveryIssueNotifiertoNotifier()private static TestSourcetoSource(DiscoverySelector selector)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.platform.launcher.LauncherDiscoveryListener
engineDiscoveryFinished, launcherDiscoveryFinished, launcherDiscoveryStarted
-
-
-
-
Field Detail
-
logger
private static final org.junit.platform.commons.logging.Logger logger
-
issues
final java.util.List<DiscoveryIssue> issues
-
configurationParameters
private final ConfigurationParameters configurationParameters
-
-
Constructor Detail
-
DiscoveryIssueCollector
DiscoveryIssueCollector(ConfigurationParameters configurationParameters)
-
-
Method Detail
-
engineDiscoveryStarted
public void engineDiscoveryStarted(UniqueId engineId)
Description copied from interface:LauncherDiscoveryListenerCalled when test discovery is about to be started for an engine.- Specified by:
engineDiscoveryStartedin interfaceLauncherDiscoveryListener- Parameters:
engineId- the unique ID of the engine descriptor
-
selectorProcessed
public void selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)
Description copied from interface:EngineDiscoveryListenerMust 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.
- Specified by:
selectorProcessedin interfaceEngineDiscoveryListener- Parameters:
engineId- the unique ID of the engine descriptorselector- the processed selectorresult- the resolution result of the supplied engine and selector- See Also:
SelectorResolutionResult
-
toSource
private static TestSource toSource(DiscoverySelector selector)
-
convert
private static FilePosition convert(FilePosition position)
-
issueEncountered
public void issueEncountered(UniqueId engineId, DiscoveryIssue issue)
Description copied from interface:EngineDiscoveryListenerCalled when the engine with the suppliedengineIdencountered an issue during test discovery.- Specified by:
issueEncounteredin interfaceEngineDiscoveryListener- Parameters:
engineId- the unique ID of the engine descriptorissue- the encountered issue- See Also:
DiscoveryIssue
-
toNotifier
DiscoveryIssueNotifier toNotifier()
-
getCriticalSeverity
private DiscoveryIssue.Severity getCriticalSeverity()
-
-