java.lang.Object
org.junit.platform.jfr.FlightRecordingDiscoveryListener
- All Implemented Interfaces:
EngineDiscoveryListener
,LauncherDiscoveryListener
@API(status=EXPERIMENTAL,
since="1.8")
public class FlightRecordingDiscoveryListener
extends Object
implements LauncherDiscoveryListener
A
LauncherDiscoveryListener
that generates Java Flight Recorder
events.- Since:
- 1.8
- See Also:
-
Field Summary
Fields inherited from interface org.junit.platform.launcher.LauncherDiscoveryListener
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Called when test discovery has finished.void
Called when test discovery is about to be started.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.engine.EngineDiscoveryListener
selectorProcessed
-
Constructor Details
-
FlightRecordingDiscoveryListener
public FlightRecordingDiscoveryListener()
-
-
Method Details
-
launcherDiscoveryStarted
Description copied from interface:LauncherDiscoveryListener
Called when test discovery is about to be started.- Specified by:
launcherDiscoveryStarted
in interfaceLauncherDiscoveryListener
- Parameters:
request
- the request for which discovery is being started
-
launcherDiscoveryFinished
Description copied from interface:LauncherDiscoveryListener
Called when test discovery has finished.- Specified by:
launcherDiscoveryFinished
in interfaceLauncherDiscoveryListener
- Parameters:
request
- the request for which discovery has finished
-
engineDiscoveryStarted
Description copied from interface:LauncherDiscoveryListener
Called when test discovery is about to be started for an engine.- Specified by:
engineDiscoveryStarted
in interfaceLauncherDiscoveryListener
- Parameters:
engineId
- the unique ID of the engine descriptor
-
engineDiscoveryFinished
Description copied from interface: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.
- Specified by:
engineDiscoveryFinished
in interfaceLauncherDiscoveryListener
- Parameters:
engineId
- the unique ID of the engine descriptorresult
- the discovery result of the supplied engine- See Also:
-