@API(status=EXPERIMENTAL,
since="1.6")
public class LauncherDiscoveryListeners
extends java.lang.Object
static
factory methods for creating
LauncherDiscoveryListeners
.Modifier and Type | Class and Description |
---|---|
private static class |
LauncherDiscoveryListeners.LauncherDiscoveryListenerType |
Modifier | Constructor and Description |
---|---|
private |
LauncherDiscoveryListeners() |
Modifier and Type | Method and Description |
---|---|
static LauncherDiscoveryListener |
abortOnFailure()
Create a
LauncherDiscoveryListener that aborts test discovery on
failures. |
static LauncherDiscoveryListener |
composite(java.util.List<LauncherDiscoveryListener> listeners) |
static LauncherDiscoveryListener |
fromConfigurationParameter(java.lang.String key,
java.lang.String value) |
static LauncherDiscoveryListener |
logging()
Create a
LauncherDiscoveryListener that logs test discovery
events based on their severity. |
private static JUnitException |
newInvalidConfigurationParameterException(java.lang.String key,
java.lang.String value) |
public static LauncherDiscoveryListener abortOnFailure()
LauncherDiscoveryListener
that aborts test discovery on
failures.
The following events are considered failures:
UniqueIdSelector
that starts with the engine's unique ID.
Throwable
thrown by
TestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId)
.
public static LauncherDiscoveryListener logging()
LauncherDiscoveryListener
that logs test discovery
events based on their severity.
For example, failures during test discovery are logged as errors.
@API(status=INTERNAL, since="1.6") public static LauncherDiscoveryListener composite(java.util.List<LauncherDiscoveryListener> listeners)
@API(status=INTERNAL, since="1.6") public static LauncherDiscoveryListener fromConfigurationParameter(java.lang.String key, java.lang.String value)
private static JUnitException newInvalidConfigurationParameterException(java.lang.String key, java.lang.String value)