From: Steve F. <sm...@us...> - 2003-11-18 23:12:56
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/test/mockobjects/dynamic/matchers In directory sc8-pr-cvs1:/tmp/cvs-serv345/src/core/test/mockobjects/dynamic/matchers Modified Files: InvocationMatcherTest.java CallOnceMatcherTest.java Log Message: Added better error reporting. Shows invocation and invokables. Index: InvocationMatcherTest.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/test/mockobjects/dynamic/matchers/InvocationMatcherTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- InvocationMatcherTest.java 29 Oct 2003 22:11:36 -0000 1.1 +++ InvocationMatcherTest.java 18 Nov 2003 23:12:52 -0000 1.2 @@ -12,10 +12,10 @@ public class InvocationMatcherTest extends TestCaseMo { private Invocation emptyInvocation = - new Invocation("example", new Class[0], Void.class, new Object[0] ); + new Invocation(Void.class, "example", new Class[0], Void.class, new Object[0] ); private Invocation exampleInvocation = - new Invocation("example", new Class[] { String.class }, Void.class, + new Invocation(Void.class, "example", new Class[] { String.class }, Void.class, new Object[] { "arg1", "arg2" } ); public InvocationMatcherTest(String name) { Index: CallOnceMatcherTest.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/test/mockobjects/dynamic/matchers/CallOnceMatcherTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CallOnceMatcherTest.java 29 Oct 2003 22:11:36 -0000 1.1 +++ CallOnceMatcherTest.java 18 Nov 2003 23:12:52 -0000 1.2 @@ -11,7 +11,7 @@ public class CallOnceMatcherTest extends TestCase { private Invocation emptyInvocation = - new Invocation("example", new Class[0], Void.class, new Object[0] ); + new Invocation(Void.class, "example", new Class[0], Void.class, new Object[0] ); private CallOnceMatcher matcher = new CallOnceMatcher(); public void testWillMatchIfNotYetInvoked() { |