Package org.junit.platform.launcher
Class AbstractMethodFilter
- java.lang.Object
-
- org.junit.platform.launcher.AbstractMethodFilter
-
- All Implemented Interfaces:
Filter<TestDescriptor>,MethodFilter,PostDiscoveryFilter
- Direct Known Subclasses:
ExcludeMethodFilter,IncludeMethodFilter
abstract class AbstractMethodFilter extends java.lang.Object implements MethodFilter
AbstractMethodFilterthat servers as a superclass for filters including or excluding fully qualified method names without parameters based on pattern-matching.- Since:
- 1.12
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringpatternDescriptionprotected java.util.List<java.util.regex.Pattern>patterns
-
Constructor Summary
Constructors Constructor Description AbstractMethodFilter(java.lang.String... patterns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.util.regex.Pattern>findMatchingPattern(java.lang.String methodName)protected java.lang.StringgetFullyQualifiedMethodNameFromDescriptor(TestDescriptor descriptor)private java.lang.StringgetFullyQualifiedMethodNameWithoutParameters(MethodSource methodSource)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.platform.engine.Filter
apply, toPredicate
-
-
-
-
Method Detail
-
findMatchingPattern
protected java.util.Optional<java.util.regex.Pattern> findMatchingPattern(java.lang.String methodName)
-
getFullyQualifiedMethodNameFromDescriptor
protected java.lang.String getFullyQualifiedMethodNameFromDescriptor(TestDescriptor descriptor)
-
getFullyQualifiedMethodNameWithoutParameters
private java.lang.String getFullyQualifiedMethodNameWithoutParameters(MethodSource methodSource)
-
-