Class LauncherDiscoveryListeners


  • @API(status=EXPERIMENTAL,
         since="1.6")
    public class LauncherDiscoveryListeners
    extends java.lang.Object
    Collection of static factory methods for creating LauncherDiscoveryListeners.
    Since:
    1.6
    • Method Detail

      • abortOnFailure

        public static LauncherDiscoveryListener abortOnFailure()
        Create a LauncherDiscoveryListener that aborts test discovery on failures.

        The following events are considered failures:

        • a failed resolution result.
        • an unresolved resolution result for a UniqueIdSelector that starts with the engine's unique ID.
        • any non-blacklisted Throwable thrown by TestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId).
      • fromConfigurationParameter

        @API(status=INTERNAL,
             since="1.6")
        public static LauncherDiscoveryListener fromConfigurationParameter​(java.lang.String key,
                                                                           java.lang.String value)