From: Steve F. <sm...@us...> - 2002-11-24 11:01:09
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv26960/src/core/com/mockobjects/dynamic Modified Files: Mock.java Log Message: Renamed P to C for consistency Index: Mock.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/Mock.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- Mock.java 12 Nov 2002 17:42:37 -0000 1.15 +++ Mock.java 24 Nov 2002 11:01:00 -0000 1.16 @@ -8,7 +8,6 @@ import com.mockobjects.constraint.*; import junit.framework.Assert; -import junit.framework.AssertionFailedError; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; @@ -220,7 +219,7 @@ * Mock object. */ public void expectAndReturn( String method, Object arg, Object result ) { - expectAndReturn( method, P.args(P.eq(arg) ), result); + expectAndReturn( method, C.args(C.eq(arg) ), result); } /** Expect a method call with no parameters and return a result when it is called. @@ -268,7 +267,7 @@ * Mock object. */ public void expectVoid(String method, Object arg) { - expectVoid( method, P.args(P.eq(arg)) ); + expectVoid( method, C.args(C.eq(arg)) ); } /** @@ -315,7 +314,7 @@ * Mock object. */ public void expectAndThrow( String method, Object arg, Throwable exception ) { - expectAndThrow( method, P.args(P.eq(arg)), exception ); + expectAndThrow( method, C.args(C.eq(arg)), exception ); } /** Expect a method call with no parameters and throw an exception or error when it is called. |