[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

expects(ExpectationBuilder) method in Expectations?

From: David Glasser <glasser_at_mit.edu>
Date: 2007-03-28 22:19:10 CEST

One method that ExpectationGroupBuilder (ie, InThisOrder and
InAnyOrder) had that Expectations doesn't was the expects method:

public void expects(ExpectationGroupBuilder subgroupBuilder) {
    elementBuilders.add(subgroupBuilder);
    expectationBuilder = null;
}

This allowed me to factor out sets of expectations that were common to
several tests into helper methods that returned
ExpectationGroupBuilders, which were then included with expects().
This felt a little dirty (since it required referencing a class in
org.jmock.internal) but worked well. Any chance of reinstating it?
Or is there another workaround?

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 28 22:19:27 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.