groovy.mock.interceptor
Class StrictExpectation
Expects demanded call cardinalities to match demanded ranges in the sequence of recording.
- :
- See LooseExpectation
- author:
- Dierk Koenig
Method Summary |
Closure |
match(String name)
Match the requested method name against eligible demands.
|
void |
verify()
verify all calls are in expected range
|
StrictExpectation
public StrictExpectation(Demand demand)
-
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.
verify
void verify()
- verify all calls are in expected range