Class Stubber


  • public class Stubber
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Stubber()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void stubMethod​(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.Object returnObject)
      Add a method that should be intercepted and return another value ( returnObject) (i.e.
      static void stubMethod​(java.lang.reflect.Method method, java.lang.Object returnObject)
      Add a method that should be intercepted and return another value ( returnObject) (i.e.
      • Methods inherited from class java.lang.Object

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

      • Stubber

        public Stubber()
    • Method Detail

      • stubMethod

        public static void stubMethod​(java.lang.reflect.Method method,
                                      java.lang.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​(java.lang.Class<?> declaringClass,
                                      java.lang.String methodName,
                                      java.lang.Object returnObject)
        Add a method that should be intercepted and return another value ( returnObject) (i.e. the method is stubbed).