Class Stubber


  • public class Stubber
    extends Object
    • Constructor Detail

      • Stubber

        public Stubber()
    • Method Detail

      • stubMethod

        public static void stubMethod​(Method method,
                                      Object returnObject)
        Add a method that should be intercepted and return another value ( returnObject) (i.e. the method is stubbed).
      • stubMethod

        public static void stubMethod​(Class<?> declaringClass,
                                      String methodName,
                                      Object returnObject)
        Add a method that should be intercepted and return another value ( returnObject) (i.e. the method is stubbed).