Class MethodStubStrategyImpl<T>

    • Constructor Detail

      • MethodStubStrategyImpl

        public MethodStubStrategyImpl​(Method method)
    • Method Detail

      • andReturn

        @Deprecated
        public void andReturn​(T returnValue)
        Deprecated.
        Description copied from interface: MethodStubStrategy
        Stubs the method to return the specified returnValue.
        Specified by:
        andReturn in interface MethodStubStrategy<T>
        Parameters:
        returnValue - The value that will be returned.
      • toReturn

        public void toReturn​(T returnValue)
        Description copied from interface: MethodStubStrategy
        Stubs the method to return the specified returnValue.
        Specified by:
        toReturn in interface MethodStubStrategy<T>
        Parameters:
        returnValue - The value that will be returned.