public class GlobFilter
extends java.lang.Object
implements org.junit.platform.launcher.PostDiscoveryFilter
| Modifier and Type | Method and Description |
|---|---|
org.junit.platform.engine.FilterResult |
apply(org.junit.platform.engine.TestDescriptor object) |
static java.util.Optional<GlobFilter> |
create(java.util.Set<java.lang.String> globPatterns,
Dispatcher eventDispatcher)
Conditionally creates a
GlobFilter depending on whether the
specified pattern set contains any elements. |
public static java.util.Optional<GlobFilter> create(java.util.Set<java.lang.String> globPatterns, Dispatcher eventDispatcher)
GlobFilter depending on whether the
specified pattern set contains any elements.globPatterns - The available glob patterns (might be empty)eventDispatcher - The event dispatcher which should be notified about filtered tests.public org.junit.platform.engine.FilterResult apply(org.junit.platform.engine.TestDescriptor object)
apply in interface org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>