Top Description Fields Methods
org.junit.platform.engine

public Interface EngineDiscoveryListener

Annotations
@API
status:STABLE
since:1.10
Static Imports
org.apiguardian.api.API.Status.STABLE

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

Modifier and TypeField and Description
public static final EngineDiscoveryListener
NOOP

No-op implementation of EngineDiscoveryListener

Method Summary

Modifier and TypeMethod and Description
public default void
selectorProcessed(UniqueId
the unique ID of the engine descriptor
engineId
,
DiscoverySelector
the processed selector
selector
,
SelectorResolutionResult
the resolution result of the supplied engine and selector
result
)

Must be called after a discovery selector has been processed by a test engine.

Field Detail

NOOPback to summary
public static final EngineDiscoveryListener NOOP

No-op implementation of EngineDiscoveryListener

Method Detail

selectorProcessedback to summary
public 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:UniqueId

the unique ID of the engine descriptor

selector:DiscoverySelector

the processed selector

result:SelectorResolutionResult

the resolution result of the supplied engine and selector

See Also
SelectorResolutionResult