Yes. We used to have more complex search options but it was too
confusing, so now it's first-to-last.
We should write this up more clearly...
S.
On 13 Apr 2009, at 17:01, Jeudy, Guillaume wrote:
> I found how to do it. The order in which expectations are set is
> important. If I put ignoring() at the end it will only get there if
> any previous expectations didnt match.
>
> mockContext.checking(new Expectations() {
> {
> one(mockReleasePackage).hasADeploymentInProgress();
> will(returnValue(true));
> ignoring(mockReleasePackage); // ignore any other method calls
> }
> });
Steve Freeman
Winner of the Agile Alliance Gordon Pask award 2006
http://www.m3p.co.ukM3P Limited.
Registered office. 2 Church Street, Burnham, Bucks, SL1 7HZ.
Company registered in England & Wales. Number 03689627
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email