@API(status=EXPERIMENTAL,
since="1.6")
public interface LauncherDiscoveryListener
extends EngineDiscoveryListener
LauncherDiscoveryRequestBuilder or
Launcher to be notified of events that occur during test discovery.
All methods in this interface have empty default implementations. Concrete implementations may therefore override one or more of these methods to be notified of the selected events.
JUnit provides default implementations that are created via the factory
methods in
LauncherDiscoveryListeners.
The methods declared in this interface are called by the Launcher
created via the LauncherFactory
during test discovery.
| Modifier and Type | Field and Description |
|---|---|
static LauncherDiscoveryListener |
NOOP
No-op implementation of
LauncherDiscoveryListener |
| Modifier and Type | Method and Description |
|---|---|
default void |
engineDiscoveryFinished(UniqueId engineId,
EngineDiscoveryResult result)
Called when test discovery has finished for an engine.
|
default void |
engineDiscoveryStarted(UniqueId engineId)
Called when test discovery is about to be started for an engine.
|
default void |
launcherDiscoveryFinished(LauncherDiscoveryRequest request)
Called when test discovery has finished.
|
default void |
launcherDiscoveryStarted(LauncherDiscoveryRequest request)
Called when test discovery is about to be started.
|
selectorProcessedstatic final LauncherDiscoveryListener NOOP
LauncherDiscoveryListener@API(status=STABLE,
since="1.10")
default void launcherDiscoveryStarted(LauncherDiscoveryRequest request)
request - the request for which discovery is being started@API(status=STABLE,
since="1.10")
default void launcherDiscoveryFinished(LauncherDiscoveryRequest request)
request - the request for which discovery has finisheddefault void engineDiscoveryStarted(UniqueId engineId)
engineId - the unique ID of the engine descriptordefault void engineDiscoveryFinished(UniqueId engineId, EngineDiscoveryResult result)
Exceptions thrown by implementations of this method will cause the complete test discovery to be aborted.
engineId - the unique ID of the engine descriptorresult - the discovery result of the supplied engineEngineDiscoveryResult