Class ClassNamePatternFilterUtils

java.lang.Object
org.junit.platform.commons.util.ClassNamePatternFilterUtils

@API(status=INTERNAL, since="1.7") public class ClassNamePatternFilterUtils extends Object
Collection of utilities for creating filters based on class names.

DISCLAIMER

These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!

Since:
1.7
  • Field Details

  • Method Details

    • excludeMatchingClasses

      public static <T> Predicate<T> excludeMatchingClasses(String patterns)
      Create a Predicate that can be used to exclude (i.e., filter out) objects of type T whose fully qualified class names match any of the supplied patterns.
      Parameters:
      patterns - a comma-separated list of patterns
    • excludeMatchingClassNames

      public static Predicate<String> excludeMatchingClassNames(String patterns)
      Create a Predicate that can be used to exclude (i.e., filter out) fully qualified class names matching any of the supplied patterns.
      Parameters:
      patterns - a comma-separated list of patterns