Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/examples/advanced
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20057/input/javasrc/biz/xsoftware/examples/advanced
Modified Files:
TestExample.java
Log Message:
refactor mocklib back to original api.
Index: TestExample.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/examples/advanced/TestExample.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestExample.java 11 Sep 2006 00:34:10 -0000 1.4
--- TestExample.java 13 Sep 2006 03:09:00 -0000 1.5
***************
*** 64,69 ****
//that a call to getUser results from an event
MockObject mockUser = MockObjectFactory.createMock(User.class);
! mockUser.addReturnValue("foo", "addTaskDone");
! mockRecord.addReturnValue(mockUser, "getUser");
//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("addTaskDone", "foo");
! mockRecord.addReturnValue("getUser", mockUser);
//have mockTaskSvc fire an event that should cause sysUnderTest
|