Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8021/input/javasrc/biz/xsoftware/test/mock
Modified Files:
TestMockCreator.java
Removed Files:
NewBehavior.java
Log Message:
back out changes for new behavior.
Index: TestMockCreator.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock/TestMockCreator.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** TestMockCreator.java 10 Sep 2006 17:18:39 -0000 1.10
--- TestMockCreator.java 10 Sep 2006 17:41:29 -0000 1.11
***************
*** 275,308 ****
assertEquals(newBytes[i], newBytes[i+4]);
}
! }
!
! public void testNewBehavior() {
! // MockObject mock = MockObjectFactory.createMock(Identical.class);
! //
! // mock.addBehavior("doThat", new NewBehavior());
! //
! // Identical ident = (Identical)mock;
! //
! // byte[] original = new byte[] { 1, 2, 3, 4, 0, 0, 0, 0};
! // byte[] bytes = new byte[] { 1, 2, 3, 4, 0 ,0,0,0};
! //
! // byte[] newBytes = ident.doThat(bytes);
! //
! // CalledMethod m = mock.expect("doThat");
! // byte[] passedIn = (byte[])m.getAllParams()[0];
! //
! // assertEquals(original.length, passedIn.length);
! // for(int i = 0; i < original.length; i++) {
! // assertEquals(original[i], passedIn[i]);
! // }
! //
! // //make sure this is the same byte array we passed in
! // assertSame(bytes, newBytes);
! //
! // for(int i = 0; i < 4; i++) {
! // assertEquals(newBytes[i], newBytes[i+4]);
! // }
! }
!
public void testAddRemoveIgnore()
--- 275,279 ----
assertEquals(newBytes[i], newBytes[i+4]);
}
! }
public void testAddRemoveIgnore()
--- NewBehavior.java DELETED ---
|