Overview | Package | Class
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## groovy.mock.interceptor
Class StubFor

Facade over the Stubbing details. A Stub's expectation is sequence independent and use of verify() is left to the user.

:
  See MockFor.

author:
  Dierk Koenig

author:
  Paul King

Field Summary
`Class` | `clazz`
`Demand` | `demand`
`def` | `expect`
`Map` | `instanceExpectations`
`MockProxyMetaClass` | `proxy`

Constructor Summary
`StubFor(Class clazz)`

Method Summary
`def` | `getInstance(Class clazz, def args)`
`Object` | `proxyDelegateInstance()`
`Object` | `proxyDelegateInstance(def args)`
`Object` | `proxyInstance()`
`Object` | `proxyInstance(def args)`
`void` | `use(Closure closure)`
`void` | `use(GroovyObject obj, Closure closure)`
`void` | `verify(GroovyObject obj)`

Constructor Detail

### StubFor

    public StubFor(Class clazz)

Method Detail

### getInstance

    def getInstance(Class clazz, def args)

### proxyDelegateInstance

    Object proxyDelegateInstance()

### proxyDelegateInstance

    Object proxyDelegateInstance(def args)

### proxyInstance

    Object proxyInstance()

### proxyInstance

    Object proxyInstance(def args)

### use

    void use(Closure closure)

### use

    void use(GroovyObject obj, Closure closure)

### verify

    void verify(GroovyObject obj)