Groovy 1.7.2

groovy.mock.interceptor
Class StrictExpectation

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

public class StrictExpectation
extends Object

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

see:
LooseExpectation
author:
Dierk Koenig


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, hashCode, getClass, equals, toString, notify, notifyAll
 

Constructor Detail

StrictExpectation

public StrictExpectation(Demand demand)


 
Method Detail

match

public 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

public void verify()
verify all calls are in expected range


 

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