Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21376/input/javasrc/biz/xsoftware/test/mock2
Modified Files:
Tag: branchForOffice
TestMockCreator.java
Log Message:
change implementation ,
Index: TestMockCreator.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock2/TestMockCreator.java,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -C2 -d -r1.1.2.13 -r1.1.2.14
*** TestMockCreator.java 22 Feb 2006 14:14:45 -0000 1.1.2.13
--- TestMockCreator.java 23 Feb 2006 11:06:46 -0000 1.1.2.14
***************
*** 179,191 ****
String param="params";
try{
! l.callMeSecond(param);
! m.verify();
fail("Exception should be thrown earlier, try to find why it did not!!!");
} catch (IOException e) {
assertEquals(message,e.getMessage());
}
!
!
}
--- 179,193 ----
String param="params";
try{
! l.callMeSecond(param);
fail("Exception should be thrown earlier, try to find why it did not!!!");
} catch (IOException e) {
+ m.verify();
assertEquals(message,e.getMessage());
}
! }
!
! public void testExpectWithBehavior()throws Exception {
! MockObject m=MockObjectFactory.createMock(ListenerOne.class);
}
|