Class GroovyMockMetaClass

java.lang.Object
groovy.lang.DelegatingMetaClass
org.spockframework.mock.runtime.GroovyMockMetaClass
All Implemented Interfaces:
groovy.lang.GroovyObject, groovy.lang.MetaClass, groovy.lang.MetaObjectProtocol, groovy.lang.MutableMetaClass

public class GroovyMockMetaClass extends groovy.lang.DelegatingMetaClass
  • Field Summary

    Fields inherited from class groovy.lang.DelegatingMetaClass

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    GroovyMockMetaClass(IMockConfiguration configuration, Specification specification, groovy.lang.MetaClass oldMetaClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getProperty(Object target, String property)
     
     
    invokeMethod(Object target, String method, Object[] arguments)
     
    invokeStaticMethod(Object target, String method, Object[] arguments)
     
    void
    setProperty(Object target, String property, Object newValue)
     

    Methods inherited from class groovy.lang.DelegatingMetaClass

    addMetaBeanProperty, addMetaMethod, addNewInstanceMethod, addNewStaticMethod, equals, getAdaptee, getAttribute, getAttribute, getClassNode, getMetaClass, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getProperties, getProperty, getProperty, getStaticMetaMethod, getStaticMetaMethod, getTheClass, hashCode, hasProperty, initialize, invokeMethod, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, isGroovyObject, isModified, pickMethod, respondsTo, respondsTo, selectConstructorAndTransformArguments, setAdaptee, setAttribute, setAttribute, setMetaClass, setProperty, setProperty, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • invokeMethod

      public Object invokeMethod(Object target, String method, Object[] arguments)
      Specified by:
      invokeMethod in interface groovy.lang.MetaObjectProtocol
      Overrides:
      invokeMethod in class groovy.lang.DelegatingMetaClass
    • invokeStaticMethod

      public Object invokeStaticMethod(Object target, String method, Object[] arguments)
      Specified by:
      invokeStaticMethod in interface groovy.lang.MetaObjectProtocol
      Overrides:
      invokeStaticMethod in class groovy.lang.DelegatingMetaClass
    • invokeConstructor

      public Object invokeConstructor(Object[] arguments)
      Specified by:
      invokeConstructor in interface groovy.lang.MetaObjectProtocol
      Overrides:
      invokeConstructor in class groovy.lang.DelegatingMetaClass
    • getProperty

      public Object getProperty(Object target, String property)
      Specified by:
      getProperty in interface groovy.lang.MetaObjectProtocol
      Overrides:
      getProperty in class groovy.lang.DelegatingMetaClass
    • setProperty

      public void setProperty(Object target, String property, Object newValue)
      Specified by:
      setProperty in interface groovy.lang.MetaObjectProtocol
      Overrides:
      setProperty in class groovy.lang.DelegatingMetaClass