Class MockPolicyInterceptionSettingsImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.reflect.Field> fieldsToSuppress  
      private java.util.Set<java.lang.String> fieldsTypesToSuppress  
      private java.util.Set<java.lang.reflect.Method> methodsToSuppress  
      private java.util.Map<java.lang.reflect.Method,​java.lang.reflect.InvocationHandler> proxies  
      private java.util.Map<java.lang.reflect.Method,​java.lang.Object> substituteReturnValues  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFieldToSuppress​(java.lang.reflect.Field[] fields)
      Add specific fields that should be suppressed upon invocation.
      void addFieldToSuppress​(java.lang.reflect.Field firstField, java.lang.reflect.Field... fields)
      Add specific fields that should be suppressed upon invocation.
      void addFieldTypesToSuppress​(java.lang.String[] fieldTypes)
      Add field types that should be suppressed.
      void addFieldTypesToSuppress​(java.lang.String firstType, java.lang.String... additionalFieldTypes)
      Add field types that should be suppressed.
      void addMethodsToSuppress​(java.lang.reflect.Method[] methods)
      Add methods to suppress upon invocation.
      void addMethodsToSuppress​(java.lang.reflect.Method methodToSuppress, java.lang.reflect.Method... additionalMethodsToSuppress)
      Add methods to suppress upon invocation.
      void addSubtituteReturnValue​(java.lang.reflect.Method method, java.lang.Object returnObject)
      Add a method that should be intercepted and return another value ( returnObject).
      java.lang.reflect.Field[] getFieldsToSuppress()  
      java.lang.String[] getFieldTypesToSuppress()  
      java.lang.reflect.Method[] getMethodsToSuppress()  
      java.util.Map<java.lang.reflect.Method,​java.lang.reflect.InvocationHandler> getProxiedMethods()
      Get all methods that should be proxied and the invocation handler for each method.
      java.util.Map<java.lang.reflect.Method,​java.lang.Object> getStubbedMethods()
      Get all substitute return values and also returns an unmodifiable map of all method-object pairs the were initialized.
      java.util.Map<java.lang.reflect.Method,​java.lang.Object> getSubstituteReturnValues()
      Get all substitute return values and also returns an unmodifiable map of all method-object pairs the were initialized.
      void proxyMethod​(java.lang.reflect.Method method, java.lang.reflect.InvocationHandler invocationHandler)
      Proxy a method with the given invocation handler.
      void setFieldsSuppress​(java.lang.reflect.Field[] fields)
      Set specific fields that should be suppressed upon invocation.
      void setFieldTypesToSuppress​(java.lang.String[] fieldTypes)
      Set which field types that should be suppressed.
      void setMethodsToProxy​(java.util.Map<java.lang.reflect.Method,​java.lang.reflect.InvocationHandler> proxies)
      Set the methods to proxy.
      void setMethodsToStub​(java.util.Map<java.lang.reflect.Method,​java.lang.Object> substituteReturnValues)
      Set the substitute return values.
      void setMethodsToSuppress​(java.lang.reflect.Method[] methods)
      Set which methods to suppress.
      void setSubtituteReturnValues​(java.util.Map<java.lang.reflect.Method,​java.lang.Object> substituteReturnValues)
      Set the substitute return values.
      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
    • Field Detail

      • fieldsToSuppress

        private java.util.Set<java.lang.reflect.Field> fieldsToSuppress
      • methodsToSuppress

        private java.util.Set<java.lang.reflect.Method> methodsToSuppress
      • substituteReturnValues

        private java.util.Map<java.lang.reflect.Method,​java.lang.Object> substituteReturnValues
      • fieldsTypesToSuppress

        private java.util.Set<java.lang.String> fieldsTypesToSuppress
      • proxies

        private java.util.Map<java.lang.reflect.Method,​java.lang.reflect.InvocationHandler> proxies
    • Constructor Detail

      • MockPolicyInterceptionSettingsImpl

        public MockPolicyInterceptionSettingsImpl()