Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28901/input/javasrc/biz/xsoftware/test/mock2
Modified Files:
TestMockCreator.java
Log Message:
get rid of eclipse warnings.
Index: TestMockCreator.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock2/TestMockCreator.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestMockCreator.java 23 Feb 2006 11:36:32 -0000 1.4
--- TestMockCreator.java 2 Mar 2006 10:47:18 -0000 1.5
***************
*** 1,5 ****
package biz.xsoftware.test.mock2;
- import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
--- 1,4 ----
***************
*** 48,52 ****
String methodName2="callMeSecond";
CalledMethod callMeFirst =m.expect(methodName1);
! CalledMethod callMeSecond=m.expect(methodName2);
try {
--- 47,53 ----
String methodName2="callMeSecond";
CalledMethod callMeFirst =m.expect(methodName1);
! //eclipse complains this is never read so don't bother having it for now...
! //CalledMethod callMeSecond=
! m.expect(methodName2);
try {
***************
*** 167,195 ****
}
-
- public void testExceptionThrows() throws Exception{
- MockObject m=MockObjectFactory.createMock(ListenerOne.class);
- ListenerOne l=(ListenerOne)m;
-
- String methodName="callMeSecond";
- String message="Make sure systemUnderTest handles exception";
- CalledMethod calledMethod=m.expect(methodName,new IOException(message));
-
-
- String param="params";
- try{
- l.callMeSecond(param);
- fail("Exception should be thrown earlier, try to find why it did not!!!");
- } catch (IOException e) {
-
- assertEquals(message,e.getMessage());
- }
-
- m.verify();
- }
-
- public void testExpectWithBehavior()throws Exception {
- MockObject m=MockObjectFactory.createMock(ListenerOne.class);
- }
}
--- 168,171 ----
|