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

public class GlobFilter extends Object implements org.junit.platform.launcher.PostDiscoveryFilter
Filters test descriptors against a given set of glob patterns.
  • Method Details

    • create

      public static Optional<GlobFilter> create(Set<String> globPatterns, Dispatcher eventDispatcher)
      Conditionally creates a GlobFilter depending 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:
      apply in interface org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>