Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/examples/advanced
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv31015/input/javasrc/biz/xsoftware/examples/advanced
Modified Files:
TestExample.java
Log Message:
take a guess at the new mocklib3 api.
Index: TestExample.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/examples/advanced/TestExample.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestExample.java 10 Sep 2006 18:25:58 -0000 1.1
--- TestExample.java 10 Sep 2006 18:35:13 -0000 1.2
***************
*** 64,69 ****
//that a call to getUser results from an event
MockObject mockUser = MockObjectFactory.createMock(User.class);
! mockUser.addReturnValue("addTaskDone", "foo");
! mockRecord.addReturnValue("getUser", mockUser);
//have mockTaskSvc fire an event that should cause sysUnderTest
--- 64,69 ----
//that a call to getUser results from an event
MockObject mockUser = MockObjectFactory.createMock(User.class);
! mockUser.addReturnValue("foo", "addTaskDone", null);
! mockRecord.addReturnValue(mockUser, "getUser", null);
//have mockTaskSvc fire an event that should cause sysUnderTest
|