Module org.junit.platform.engine
Package org.junit.platform.engine
Interface EngineDiscoveryListener
- All Known Subinterfaces:
LauncherDiscoveryListener
- All Known Implementing Classes:
FlightRecordingDiscoveryListener
@API(status=EXPERIMENTAL, since="1.6") public interface EngineDiscoveryListener
EngineDiscoveryListener
contains TestEngine
access to the
information necessary to discover tests and containers.
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.
The methods declared in this interface should be called by
each TestEngine
during test discovery. However, since this interface
was only added in 1.6, older engines might not yet do so.
- Since:
- 1.6
- See Also:
EngineDiscoveryRequest.getDiscoveryListener()
-
Field Summary
Fields Modifier and Type Field Description static EngineDiscoveryListener
NOOP
No-op implementation ofEngineDiscoveryListener
-
Method Summary
Modifier and Type Method Description default void
selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)
Must be called after a discovery selector has been processed by a test engine.
-
Field Details
-
NOOP
No-op implementation ofEngineDiscoveryListener
-
-
Method Details
-
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
-