Package org.junit.platform.commons.util
Class ClassNamePatternFilterUtils
- java.lang.Object
-
- org.junit.platform.commons.util.ClassNamePatternFilterUtils
-
@API(status=INTERNAL, since="5.7") public class ClassNamePatternFilterUtils extends java.lang.ObjectCollection 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:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEACTIVATE_ALL_PATTERN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.function.Predicate<T>excludeMatchingClasses(java.lang.String patterns)Create aPredicatethat can be used to exclude (i.e., filter out) objects of typeTwhose fully qualified class names match any of the supplied patterns.
-
-
-
Field Detail
-
DEACTIVATE_ALL_PATTERN
public static final java.lang.String DEACTIVATE_ALL_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
excludeMatchingClasses
public static <T> java.util.function.Predicate<T> excludeMatchingClasses(java.lang.String patterns)
Create aPredicatethat can be used to exclude (i.e., filter out) objects of typeTwhose fully qualified class names match any of the supplied patterns.- Parameters:
patterns- a comma-separated list of patterns
-
-