Class TestFilter
java.lang.Object
com.github.sbt.junit.jupiter.internal.filter.TestFilter
- All Implemented Interfaces:
org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>,org.junit.platform.launcher.PostDiscoveryFilter
Filter for tests specified via commandline argument
--tests=.-
Method Summary
Modifier and TypeMethodDescriptionorg.junit.platform.engine.FilterResultapply(org.junit.platform.engine.TestDescriptor object) static Optional<TestFilter>create(Set<String> testFilters, Dispatcher eventDispatcher) Conditionally creates aTestFilterdepending on whether the specified filter 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 aTestFilterdepending on whether the specified filter set contains any elements.- Parameters:
testFilters- 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>
-