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

pack-priv Class IncludeMethodFilter

extends AbstractMethodFilter
Class Inheritance
Static Imports
org.junit.platform.engine.FilterResult.excluded, .FilterResult.included

MethodFilter that 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

Inherited from org.junit.platform.launcher.AbstractMethodFilter:
patternDescriptionpatterns

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public FilterResult
apply(TestDescriptor descriptor)

Implements org.junit.platform.engine.Filter.apply.

Apply this filter to the supplied object.

private String
private String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.junit.platform.launcher.AbstractMethodFilter:
findMatchingPatterngetFullyQualifiedMethodNameFromDescriptor

Constructor Detail

IncludeMethodFilterback to summary
pack-priv IncludeMethodFilter(String... patterns)

Method Detail

applyback to summary
public FilterResult apply(TestDescriptor descriptor)

Implements org.junit.platform.engine.Filter.apply.

Doc from org.junit.platform.engine.Filter.apply.

Apply this filter to the supplied object.

Annotations
@Override
formatExclusionReasonback to summary
private String formatExclusionReason(@Nullable String methodName)
formatInclusionReasonback to summary
private String formatInclusionReason(@Nullable String methodName, Pattern pattern)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override