Package org.junit.platform.launcher
Class IncludeMethodFilter
- java.lang.Object
-
- org.junit.platform.launcher.AbstractMethodFilter
-
- org.junit.platform.launcher.IncludeMethodFilter
-
- All Implemented Interfaces:
Filter<TestDescriptor>,MethodFilter,PostDiscoveryFilter
class IncludeMethodFilter extends AbstractMethodFilter
MethodFilterthat matches fully qualified method names against patterns in the form of regular expressions.If the fully qualified name of a method matches against at least one pattern, the method will be included.
- Since:
- 1.12
-
-
Field Summary
-
Fields inherited from class org.junit.platform.launcher.AbstractMethodFilter
patternDescription, patterns
-
-
Constructor Summary
Constructors Constructor Description IncludeMethodFilter(java.lang.String... patterns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterResultapply(TestDescriptor descriptor)Apply this filter to the supplied object.private java.lang.StringformatExclusionReason(java.lang.String methodName)private java.lang.StringformatInclusionReason(java.lang.String methodName, java.util.regex.Pattern pattern)java.lang.StringtoString()-
Methods inherited from class org.junit.platform.launcher.AbstractMethodFilter
findMatchingPattern, getFullyQualifiedMethodNameFromDescriptor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.junit.platform.engine.Filter
toPredicate
-
-
-
-
Method Detail
-
apply
public FilterResult apply(TestDescriptor descriptor)
Description copied from interface:FilterApply this filter to the supplied object.
-
formatInclusionReason
private java.lang.String formatInclusionReason(java.lang.String methodName, java.util.regex.Pattern pattern)
-
formatExclusionReason
private java.lang.String formatExclusionReason(java.lang.String methodName)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-