DemandProxy (Grails 2.4.4)
Date: 2014-10-28

Package: grails.test

## [Groovy] Class DemandProxy

- grails.test.DemandProxy

- Keeps track of demands and expectations for a particular Grails mock.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `groovy.mock.interceptor.Demand` | `demand`
    `java.lang.Object` | `expectation`
    `java.util.Map` | `instanceMethods` Keeps a map of instance methods added via the mock.demand... syntax.
    `boolean` | `isStatic`
    `groovy.lang.MetaClass` | `mockMetaClass`
    `java.lang.Class` | `mockedClass`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `DemandProxy (java.lang.Class mockedClass, boolean loose)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.lang.Object` | `getStatic()`
    `java.lang.Object` | `invokeMethod(java.lang.String methodName, java.lang.Object args)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Property Detail

    - #### groovy.mock.interceptor.Demand demand

    - #### java.lang.Object expectation

    - #### java.util.Map instanceMethods

      Keeps a map of instance methods added via the mock.demand... syntax.

    - #### boolean isStatic

    - #### groovy.lang.MetaClass mockMetaClass

    - #### java.lang.Class mockedClass

  - ### Constructor Detail

    - #### DemandProxy(java.lang.Class mockedClass, boolean loose)

  - ### Method Detail

    - #### java.lang.Object getStatic()

    - #### java.lang.Object invokeMethod(java.lang.String methodName, java.lang.Object args)