Top Fields Constructors Methods
org.junit.jupiter.engine.discovery

pack-priv Class MethodSegmentResolver

extends Object
Class Inheritance
Static Imports
org.junit.platform.commons.util.ReflectionUtils.isDeclaredInSamePackage, .ReflectionUtils.isPackagePrivate

Since
5.0

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Optional<Method>
findMethod(String methodSpecPart, Class<?> testClass)

pack-priv String
formatMethodSpecPart(Method method, Class<?> testClass)

If the method is package-private and declared a class in a different package than testClass, the declaring class name is included in the method's unique ID segment.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

METHOD_PATTERNback to summary
private static final Pattern METHOD_PATTERN

Constructor Detail

MethodSegmentResolverback to summary
pack-priv MethodSegmentResolver()

Method Detail

findMethodback to summary
pack-priv Optional<Method> findMethod(String methodSpecPart, Class<?> testClass)
formatMethodSpecPartback to summary
pack-priv String formatMethodSpecPart(Method method, Class<?> testClass)

If the method is package-private and declared a class in a different package than testClass, the declaring class name is included in the method's unique ID segment. Otherwise, it only consists of the method name and its parameter types.