Class EngineFilter
java.lang.Object
org.junit.platform.launcher.EngineFilter
- All Implemented Interfaces:
Filter<TestEngine>
@API(status=STABLE,
since="1.0")
public class EngineFilter
extends Object
implements Filter<TestEngine>
An
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).
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionapply(TestEngine testEngine) Apply this filter to the supplied object.static EngineFilterexcludeEngines(String... engineIds) Create a new excludeEngineFilterbased on the supplied engine IDs.static EngineFilterexcludeEngines(List<String> engineIds) Create a new excludeEngineFilterbased on the supplied engine IDs.static EngineFilterincludeEngines(String... engineIds) Create a new includeEngineFilterbased on the supplied engine IDs.static EngineFilterincludeEngines(List<String> engineIds) Create a new includeEngineFilterbased on the supplied engine IDs.booleantoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Filter
toPredicate
-
Method Details
-
includeEngines
Create a new includeEngineFilterbased on the supplied engine IDs.Only
TestEngineswith matching engine IDs will be included within the test discovery and execution.- Parameters:
engineIds- the list of engine IDs to match against; nevernullor empty; individual IDs must also not be null or blank- See Also:
-
includeEngines
Create a new includeEngineFilterbased on the supplied engine IDs.Only
TestEngineswith matching engine IDs will be included within the test discovery and execution.- Parameters:
engineIds- the list of engine IDs to match against; nevernullor empty; individual IDs must also not be null or blank- See Also:
-
excludeEngines
Create a new excludeEngineFilterbased on the supplied engine IDs.TestEngineswith matching engine IDs will be excluded from test discovery and execution.- Parameters:
engineIds- the list of engine IDs to match against; nevernullor empty; individual IDs must also not be null or blank- See Also:
-
excludeEngines
Create a new excludeEngineFilterbased on the supplied engine IDs.TestEngineswith matching engine IDs will be excluded from test discovery and execution.- Parameters:
engineIds- the list of engine IDs to match against; nevernullor empty; individual IDs must also not be null or blank- See Also:
-
getEngineIds
-
isIncludeFilter
-
apply
Description copied from interface:FilterApply this filter to the supplied object.- Specified by:
applyin interfaceFilter<TestEngine>
-
toString
-