From: Steve F. <sm...@us...> - 2002-11-24 11:03:31
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv28513/src/core/com/mockobjects/dynamic Modified Files: MethodExpectation.java Log Message: Improved error reporting. Index: MethodExpectation.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/MethodExpectation.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- MethodExpectation.java 6 Nov 2002 15:54:35 -0000 1.4 +++ MethodExpectation.java 24 Nov 2002 11:03:28 -0000 1.5 @@ -9,7 +9,7 @@ import com.mockobjects.Verifiable; public class MethodExpectation -implements Verifiable + implements Verifiable { final public String name; @@ -24,7 +24,7 @@ public void expectCall(MockCall aCall) { mockCall = aCall; - wasCalled.setExpected(true); + wasCalled.setExpected("was called"); } public void setupCall(MockCall aCall) { @@ -51,7 +51,7 @@ } public void startCall() { - wasCalled.setActual(true); + wasCalled.setActual("was called"); prerequisites.verify(); } @@ -60,7 +60,7 @@ } private void initializeWasCalled() { - wasCalled = new ExpectationValue(name + " was called"); + wasCalled = new ExpectationValue(name); } private void checkResultType(Method method, Object result) { |