Package org.junit.platform.engine
Interface EngineDiscoveryListener
-
- All Known Subinterfaces:
LauncherDiscoveryListener
- All Known Implementing Classes:
AbortOnFailureLauncherDiscoveryListener,CompositeLauncherDiscoveryListener,DiscoveryIssueCollector,LoggingLauncherDiscoveryListener
@API(status=STABLE, since="1.10") public interface EngineDiscoveryListenerEngineDiscoveryListenerdefines the API which enables aTestEngineto publish information about 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.
- Since:
- 1.6
- See Also:
EngineDiscoveryRequest.getDiscoveryListener(),LauncherDiscoveryListener
-
-
Field Summary
Fields Modifier and Type Field Description static EngineDiscoveryListenerNOOPNo-op implementation ofEngineDiscoveryListener
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidissueEncountered(UniqueId engineId, DiscoveryIssue issue)Called when the engine with the suppliedengineIdencountered an issue during test discovery.default voidselectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)Must be called after a discovery selector has been processed by a test engine.
-
-
-
Field Detail
-
NOOP
static final EngineDiscoveryListener NOOP
No-op implementation ofEngineDiscoveryListener
-
-
Method Detail
-
selectorProcessed
default void selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)
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
-
issueEncountered
@API(status=MAINTAINED, since="1.13.3") default void issueEncountered(UniqueId engineId, DiscoveryIssue issue)Called when the engine with the suppliedengineIdencountered an issue during test discovery.- Parameters:
engineId- the unique ID of the engine descriptorissue- the encountered issue- Since:
- 1.13
- See Also:
DiscoveryIssue
-
-