From: Steve F. <sm...@us...> - 2003-04-16 22:17:07
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv24985/src/core/com/mockobjects/dynamic Modified Files: Tag: DynamicMockExperiment ExpectedCall.java Log Message: ExpectedCalls are now only valid for one call. After that they will not match. Index: ExpectedCall.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/Attic/ExpectedCall.java,v retrieving revision 1.2.2.5 retrieving revision 1.2.2.6 diff -u -r1.2.2.5 -r1.2.2.6 --- ExpectedCall.java 15 Apr 2003 22:22:59 -0000 1.2.2.5 +++ ExpectedCall.java 16 Apr 2003 22:17:04 -0000 1.2.2.6 @@ -26,7 +26,7 @@ } public boolean matches(String methodName, Object[] args) { - return delegate.matches( methodName, args ); + return (! wasCalled) && delegate.matches( methodName, args ); } public void verify() { |