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

## groovy.mock.interceptor
[Groovy] Class StrictExpectation

    java.lang.Object
      groovy.mock.interceptor.StrictExpectation

    class StrictExpectation
    extends Object

Expects demanded call cardinalities to match demanded ranges in the sequence of recording.

Authors:
  Dierk Koenig

See Also:
  LooseExpectation

Property Summary
`int` | `fCallSpecIdx`
`List` | `fCalls`
`Demand` | `fDemand`

Constructor Summary
`StrictExpectation(Demand demand)`

Method Summary
`Closure` | `match(String name)` Match the requested method name against eligible demands.
`void` | `verify()` verify all calls are in expected range

Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Property Detail

### fCallSpecIdx

    int fCallSpecIdx

### fCalls

    List fCalls

### fDemand

    Demand fDemand

Constructor Detail

### StrictExpectation

    StrictExpectation(Demand demand)

Method Detail

### match

    Closure match(String name)

  Match the requested method name against eligible demands. Fail early if no match possible. Return the demand's behavior closure on match. Also skips over names matching ignore filter, if any.

### verify

    void verify()

  verify all calls are in expected range

Copyright © 2003-2010 The Codehaus. All rights reserved.