Top Description Fields Constructors Methods
org.junit.platform.launcher

pack-priv abstract Class AbstractMethodFilter

extends Object
implements MethodFilter
Class Inheritance
All Implemented Interfaces
org.junit.platform.launcher.MethodFilter, org.junit.platform.launcher.PostDiscoveryFilter, org.junit.platform.engine.Filter
Known Direct Subclasses
org.junit.platform.launcher.ExcludeMethodFilter, org.junit.platform.launcher.IncludeMethodFilter
Static Imports
java.util.stream.Collectors.joining

Abstract MethodFilter that servers as a superclass for filters including or excluding fully qualified method names without parameters based on pattern-matching.
Since
1.12

Field Summary

Modifier and TypeField and Description
protected final String
protected final List<Pattern>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Optional<Pattern>
protected @Nullable String
private String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternDescriptionback to summary
protected final String patternDescription
patternsback to summary
protected final List<Pattern> patterns

Constructor Detail

AbstractMethodFilterback to summary
pack-priv AbstractMethodFilter(String... patterns)

Method Detail

findMatchingPatternback to summary
protected Optional<Pattern> findMatchingPattern(@Nullable String methodName)
getFullyQualifiedMethodNameFromDescriptorback to summary
protected @Nullable String getFullyQualifiedMethodNameFromDescriptor(TestDescriptor descriptor)
getFullyQualifiedMethodNameWithoutParametersback to summary
private String getFullyQualifiedMethodNameWithoutParameters(MethodSource methodSource)