Class MethodSegmentResolver

java.lang.Object
org.junit.jupiter.engine.discovery.MethodSegmentResolver

class MethodSegmentResolver extends Object
Since:
5.0
  • Field Details

    • METHOD_PATTERN

      private static final Pattern METHOD_PATTERN
  • Constructor Details

    • MethodSegmentResolver

      MethodSegmentResolver()
  • Method Details

    • formatMethodSpecPart

      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.
    • findMethod

      Optional<Method> findMethod(String methodSpecPart, Class<?> testClass)