Class GlobFilter
java.lang.Object
com.github.sbt.junit.jupiter.internal.filter.GlobFilter
- All Implemented Interfaces:
org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>,org.junit.platform.launcher.PostDiscoveryFilter
Filters test descriptors against a given set of glob patterns.
-
Method Summary
Modifier and TypeMethodDescriptionorg.junit.platform.engine.FilterResultapply(org.junit.platform.engine.TestDescriptor object) static Optional<GlobFilter>create(Set<String> globPatterns, Dispatcher eventDispatcher) Conditionally creates aGlobFilterdepending on whether the specified pattern set contains any elements.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.engine.Filter
toPredicate
-
Method Details
-
create
Conditionally creates aGlobFilterdepending on whether the specified pattern set contains any elements.- Parameters:
globPatterns- The available glob patterns (might be empty)eventDispatcher- The event dispatcher which should be notified about filtered tests.- Returns:
- An optional glob filter depending on whether the pattern set contains any patterns.
-
apply
public org.junit.platform.engine.FilterResult apply(org.junit.platform.engine.TestDescriptor object) - Specified by:
applyin interfaceorg.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>
-