Class MethodSegmentResolver


  • class MethodSegmentResolver
    extends java.lang.Object
    Since:
    5.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern METHOD_PATTERN  
    • 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.String formatMethodSpecPart​(java.lang.reflect.Method method, java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • METHOD_PATTERN

        private static final java.util.regex.Pattern METHOD_PATTERN
    • Constructor Detail

      • MethodSegmentResolver

        MethodSegmentResolver()
    • Method Detail

      • formatMethodSpecPart

        java.lang.String formatMethodSpecPart​(java.lang.reflect.Method method,
                                              java.lang.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

        java.util.Optional<java.lang.reflect.Method> findMethod​(java.lang.String methodSpecPart,
                                                                java.lang.Class<?> testClass)