Class MethodSegmentResolver
- java.lang.Object
-
- org.junit.jupiter.engine.discovery.MethodSegmentResolver
-
class MethodSegmentResolver extends java.lang.Object- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternMETHOD_PATTERN
-
Constructor Summary
Constructors Constructor Description MethodSegmentResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.Optional<java.lang.reflect.Method>findMethod(java.lang.String methodSpecPart, java.lang.Class<?> testClass)(package private) java.lang.StringformatMethodSpecPart(java.lang.reflect.Method method, java.lang.Class<?> testClass)If themethodis package-private and declared a class in a different package thantestClass, the declaring class name is included in the method's unique ID segment.
-
-
-
Method Detail
-
formatMethodSpecPart
java.lang.String formatMethodSpecPart(java.lang.reflect.Method method, java.lang.Class<?> testClass)If themethodis package-private and declared a class in a different package thantestClass, 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.
-
findMethod
java.util.Optional<java.lang.reflect.Method> findMethod(java.lang.String methodSpecPart, java.lang.Class<?> testClass)
-
-