@API(value=Experimental) public class EngineFilter extends java.lang.Object implements Filter<TestEngine>
EngineFilter is applied to all TestEngines
before they are used.
Warning: be cautious when registering multiple competing
include EngineFilters or multiple competing
exclude EngineFilters for the same discovery
request since doing so will likely lead to undesirable results (i.e., zero
engines being active).
includeEngines(String...),
excludeEngines(String...),
LauncherDiscoveryRequest| Modifier and Type | Method and Description |
|---|---|
FilterResult |
apply(TestEngine testEngine)
Apply this filter to the supplied object.
|
static EngineFilter |
excludeEngines(java.util.List<java.lang.String> engineIds)
Create a new exclude
EngineFilter based on the
supplied engine IDs. |
static EngineFilter |
excludeEngines(java.lang.String... engineIds)
Create a new exclude
EngineFilter based on the
supplied engine IDs. |
static EngineFilter |
includeEngines(java.util.List<java.lang.String> engineIds)
Create a new include
EngineFilter based on the
supplied engine IDs. |
static EngineFilter |
includeEngines(java.lang.String... engineIds)
Create a new include
EngineFilter based on the
supplied engine IDs. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomposeFilters, composeFilters, toPredicatepublic static EngineFilter includeEngines(java.lang.String... engineIds)
EngineFilter based on the
supplied engine IDs.
Only TestEngines with matching engine IDs will be
included within the test discovery and execution.
engineIds - the list of engine IDs to match against; never null
or empty; individual IDs must also not be null or blankincludeEngines(String...)public static EngineFilter includeEngines(java.util.List<java.lang.String> engineIds)
EngineFilter based on the
supplied engine IDs.
Only TestEngines with matching engine IDs will be
included within the test discovery and execution.
engineIds - the list of engine IDs to match against; never null
or empty; individual IDs must also not be null or blankincludeEngines(String...)public static EngineFilter excludeEngines(java.lang.String... engineIds)
EngineFilter based on the
supplied engine IDs.
TestEngines with matching engine IDs will be
excluded from test discovery and execution.
engineIds - the list of engine IDs to match against; never null
or empty; individual IDs must also not be null or blankexcludeEngines(List)public static EngineFilter excludeEngines(java.util.List<java.lang.String> engineIds)
EngineFilter based on the
supplied engine IDs.
TestEngines with matching engine IDs will be
excluded from test discovery and execution.
engineIds - the list of engine IDs to match against; never null
or empty; individual IDs must also not be null or blankincludeEngines(String...)public FilterResult apply(TestEngine testEngine)
Filterapply in interface Filter<TestEngine>public java.lang.String toString()
toString in class java.lang.Object