Class CompositeLauncherDiscoveryListener
- java.lang.Object
-
- org.junit.platform.launcher.LauncherDiscoveryListener
-
- org.junit.platform.launcher.listeners.discovery.CompositeLauncherDiscoveryListener
-
- All Implemented Interfaces:
EngineDiscoveryListener
class CompositeLauncherDiscoveryListener extends LauncherDiscoveryListener
- Since:
- 1.6
- See Also:
LauncherDiscoveryListeners.composite(List)
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LauncherDiscoveryListener>
listeners
-
Fields inherited from class org.junit.platform.launcher.LauncherDiscoveryListener
NOOP
-
-
Constructor Summary
Constructors Constructor Description CompositeLauncherDiscoveryListener(java.util.List<LauncherDiscoveryListener> listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
engineDiscoveryFinished(UniqueId engineId, EngineDiscoveryResult result)
Called when test discovery has finished for an engine.void
engineDiscoveryStarted(UniqueId engineId)
Called when test discovery is about to be started for an engine.void
selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)
Must be called after a discovery selector has been processed by a test engine.
-
-
-
Field Detail
-
listeners
private final java.util.List<LauncherDiscoveryListener> listeners
-
-
Constructor Detail
-
CompositeLauncherDiscoveryListener
CompositeLauncherDiscoveryListener(java.util.List<LauncherDiscoveryListener> listeners)
-
-
Method Detail
-
engineDiscoveryStarted
public void engineDiscoveryStarted(UniqueId engineId)
Description copied from class:LauncherDiscoveryListener
Called when test discovery is about to be started for an engine.- Overrides:
engineDiscoveryStarted
in classLauncherDiscoveryListener
- Parameters:
engineId
- the unique ID of the engine descriptor
-
engineDiscoveryFinished
public void engineDiscoveryFinished(UniqueId engineId, EngineDiscoveryResult result)
Description copied from class:LauncherDiscoveryListener
Called when test discovery has finished for an engine.Exceptions thrown by implementations of this method will cause the complete test discovery to be aborted.
- Overrides:
engineDiscoveryFinished
in classLauncherDiscoveryListener
- Parameters:
engineId
- the unique ID of the engine descriptorresult
- the discovery result of the supplied engine- See Also:
EngineDiscoveryResult
-
selectorProcessed
public void selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)
Description copied from interface:EngineDiscoveryListener
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.
- Parameters:
engineId
- the unique ID of the engine descriptorselector
- the processed selectorresult
- the resolution result of the supplied engine and selector- See Also:
SelectorResolutionResult
-
-