Class MockMethodMetadata

  • All Implemented Interfaces:
    org.springframework.core.type.AnnotatedTypeMetadata, org.springframework.core.type.MethodMetadata

    public class MockMethodMetadata
    extends Object
    implements org.springframework.core.type.MethodMetadata
    MethodMetadata-Mock.
    • Constructor Detail

      • MockMethodMetadata

        public MockMethodMetadata​(Class<? extends Annotation> annotation)
    • Method Detail

      • getMethodName

        public String getMethodName()
        Specified by:
        getMethodName in interface org.springframework.core.type.MethodMetadata
      • getDeclaringClassName

        public String getDeclaringClassName()
        Specified by:
        getDeclaringClassName in interface org.springframework.core.type.MethodMetadata
      • getReturnTypeName

        public String getReturnTypeName()
        Specified by:
        getReturnTypeName in interface org.springframework.core.type.MethodMetadata
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface org.springframework.core.type.MethodMetadata
      • isStatic

        public boolean isStatic()
        Specified by:
        isStatic in interface org.springframework.core.type.MethodMetadata
      • isFinal

        public boolean isFinal()
        Specified by:
        isFinal in interface org.springframework.core.type.MethodMetadata
      • isOverridable

        public boolean isOverridable()
        Specified by:
        isOverridable in interface org.springframework.core.type.MethodMetadata
      • isAnnotated

        public boolean isAnnotated​(String annotationName)
        Specified by:
        isAnnotated in interface org.springframework.core.type.AnnotatedTypeMetadata
      • getAnnotationAttributes

        public Map<String,​Object> getAnnotationAttributes​(String annotationName)
        Specified by:
        getAnnotationAttributes in interface org.springframework.core.type.AnnotatedTypeMetadata
      • getAnnotationAttributes

        public Map<String,​Object> getAnnotationAttributes​(String annotationName,
                                                                boolean classValuesAsString)
        Specified by:
        getAnnotationAttributes in interface org.springframework.core.type.AnnotatedTypeMetadata
      • getAllAnnotationAttributes

        public org.springframework.util.MultiValueMap<String,​Object> getAllAnnotationAttributes​(String annotationName)
        Specified by:
        getAllAnnotationAttributes in interface org.springframework.core.type.AnnotatedTypeMetadata
      • getAllAnnotationAttributes

        public org.springframework.util.MultiValueMap<String,​Object> getAllAnnotationAttributes​(String annotationName,
                                                                                                      boolean classValuesAsString)
        Specified by:
        getAllAnnotationAttributes in interface org.springframework.core.type.AnnotatedTypeMetadata