@API(status=EXPERIMENTAL, since="1.6") public abstract class LauncherDiscoveryListener extends Object implements EngineDiscoveryListener
LauncherDiscoveryRequestBuilder
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.
LauncherDiscoveryListeners
,
LauncherDiscoveryRequest.getDiscoveryListener()
Modifier and Type | Field and Description |
---|---|
static LauncherDiscoveryListener |
NOOP
No-op implementation of
LauncherDiscoveryListener |
Constructor and Description |
---|
LauncherDiscoveryListener() |
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
selectorProcessed
public static final LauncherDiscoveryListener NOOP
LauncherDiscoveryListener
public void engineDiscoveryStarted(UniqueId engineId)
engineId
- the unique ID of the engine descriptorpublic 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
Copyright © 2020. All rights reserved.