use of org.junit.platform.engine.EngineDiscoveryListener in project junit5 by junit-team.
the class EngineDiscoveryRequestResolution method resolveCompletely.
private void resolveCompletely(DiscoverySelector selector) {
EngineDiscoveryListener discoveryListener = request.getDiscoveryListener();
UniqueId engineId = engineDescriptor.getUniqueId();
try {
Optional<Resolution> result = resolve(selector);
if (result.isPresent()) {
discoveryListener.selectorProcessed(engineId, selector, resolved());
enqueueAdditionalSelectors(result.get());
} else {
discoveryListener.selectorProcessed(engineId, selector, unresolved());
}
} catch (Throwable t) {
UnrecoverableExceptions.rethrowIfUnrecoverable(t);
discoveryListener.selectorProcessed(engineId, selector, failed(t));
}
}
Aggregations