Class StaticMockMethod

  • All Implemented Interfaces:
    IMockMethod

    public class StaticMockMethod
    extends java.lang.Object
    implements IMockMethod
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticMockMethod​(java.lang.reflect.Method method)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of the method.
      java.util.List<java.lang.Class<?>> getParameterTypes()
      Returns the parameter types of the method.
      java.lang.Class<?> getReturnType()
      Returns the return type of the method.
      boolean isStatic()
      Tells whether the method is static or an instance method.
      • Methods inherited from class java.lang.Object

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

      • StaticMockMethod

        public StaticMockMethod​(java.lang.reflect.Method method)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: IMockMethod
        Returns the name of the method.
        Specified by:
        getName in interface IMockMethod
        Returns:
        the name of the method
      • getParameterTypes

        public java.util.List<java.lang.Class<?>> getParameterTypes()
        Description copied from interface: IMockMethod
        Returns the parameter types of the method. In cases where no static type information is available, all arguments are assumed to have type Object.
        Specified by:
        getParameterTypes in interface IMockMethod
        Returns:
        the parameter types of the method
      • getReturnType

        public java.lang.Class<?> getReturnType()
        Description copied from interface: IMockMethod
        Returns the return type of the method. In cases where no static type information is available, the return type is assumed to be Object.
        Specified by:
        getReturnType in interface IMockMethod
        Returns:
        the return type of the method
      • isStatic

        public boolean isStatic()
        Description copied from interface: IMockMethod
        Tells whether the method is static or an instance method.
        Specified by:
        isStatic in interface IMockMethod
        Returns:
        whether the method is static or an instance method