Enum MethodSelectorResolver.MethodType

    • Field Detail

      • methodPredicate

        private final java.util.function.Predicate<java.lang.reflect.Method> methodPredicate
      • segmentType

        private final java.lang.String segmentType
      • dynamicDescendantSegmentTypes

        private final java.util.Set<java.lang.String> dynamicDescendantSegmentTypes
    • Constructor Detail

      • MethodType

        private MethodType​(java.util.function.Predicate<java.lang.reflect.Method> methodPredicate,
                           java.lang.String segmentType,
                           java.lang.String... dynamicDescendantSegmentTypes)
    • Method Detail

      • values

        public static MethodSelectorResolver.MethodType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MethodSelectorResolver.MethodType c : MethodSelectorResolver.MethodType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MethodSelectorResolver.MethodType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • selectClass

        private DiscoverySelector selectClass​(java.util.List<java.lang.Class<?>> enclosingClasses,
                                              java.lang.Class<?> testClass)
      • createUniqueId

        private UniqueId createUniqueId​(java.lang.reflect.Method method,
                                        TestDescriptor parent)