DemandProxy (Grails 2.3.8)
Date: 2014-04-24

Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD

## grails.test
[Groovy] Class DemandProxy

    java.lang.Object
      grails.test.DemandProxy

    class DemandProxy
    extends java.lang.Object

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

Property Summary
`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
`DemandProxy(java.lang.Class mockedClass, boolean loose)`

Method Summary
`java.lang.Object` | `getStatic()`
`java.lang.Object` | `invokeMethod(java.lang.String methodName, java.lang.Object args)`

Methods inherited from 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

### demand

    groovy.mock.interceptor.Demand demand

### expectation

    java.lang.Object expectation

### instanceMethods

    java.util.Map instanceMethods

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

### isStatic

    boolean isStatic

### mockMetaClass

    groovy.lang.MetaClass mockMetaClass

### mockedClass

    java.lang.Class mockedClass

Constructor Detail

### DemandProxy

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

Method Detail

### getStatic

    java.lang.Object getStatic()

### invokeMethod

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

Groovy Documentation