Class LoggingLauncherDiscoveryListener
- java.lang.Object
-
- org.junit.platform.launcher.listeners.discovery.LoggingLauncherDiscoveryListener
-
- All Implemented Interfaces:
EngineDiscoveryListener,LauncherDiscoveryListener
class LoggingLauncherDiscoveryListener extends java.lang.Object implements LauncherDiscoveryListener
- Since:
- 1.6
- See Also:
LauncherDiscoveryListeners.logging()
-
-
Field Summary
Fields Modifier and Type Field Description private static org.junit.platform.commons.logging.Loggerlogger-
Fields inherited from interface org.junit.platform.launcher.LauncherDiscoveryListener
NOOP
-
-
Constructor Summary
Constructors Constructor Description LoggingLauncherDiscoveryListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidengineDiscoveryFinished(UniqueId engineId, EngineDiscoveryResult result)Called when test discovery has finished for an engine.voidengineDiscoveryStarted(UniqueId engineId)Called when test discovery is about to be started for an engine.booleanequals(java.lang.Object obj)inthashCode()voidissueEncountered(UniqueId engineId, DiscoveryIssue issue)Called when the engine with the suppliedengineIdencountered an issue during test discovery.voidlauncherDiscoveryFinished(LauncherDiscoveryRequest request)Called when test discovery has finished.voidlauncherDiscoveryStarted(LauncherDiscoveryRequest request)Called when test discovery is about to be started.voidselectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)Must be called after a discovery selector has been processed by a test engine.
-
-
-
Method Detail
-
launcherDiscoveryStarted
public void launcherDiscoveryStarted(LauncherDiscoveryRequest request)
Description copied from interface:LauncherDiscoveryListenerCalled when test discovery is about to be started.- Specified by:
launcherDiscoveryStartedin interfaceLauncherDiscoveryListener- Parameters:
request- the request for which discovery is being started
-
launcherDiscoveryFinished
public void launcherDiscoveryFinished(LauncherDiscoveryRequest request)
Description copied from interface:LauncherDiscoveryListenerCalled when test discovery has finished.- Specified by:
launcherDiscoveryFinishedin interfaceLauncherDiscoveryListener- Parameters:
request- the request for which discovery has finished
-
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
-
engineDiscoveryFinished
public void engineDiscoveryFinished(UniqueId engineId, EngineDiscoveryResult result)
Description copied from interface:LauncherDiscoveryListenerCalled 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:
engineDiscoveryFinishedin interfaceLauncherDiscoveryListener- 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: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
-
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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-