Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/examples/socket
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20057/input/javasrc/biz/xsoftware/examples/socket
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/socket/TestExample.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestExample.java 11 Sep 2006 05:04:46 -0000 1.1
--- TestExample.java 13 Sep 2006 03:09:00 -0000 1.2
***************
*** 58,66 ****
*/
public void testNetworkProblems() {
! mockSocket.addThrowException(new IOException("problems writing to server"), "write");
ByteBuffer buffer = ByteBuffer.allocate(100);
buffer.put(new byte[] { 1, 2, 3, 4});
buffer.flip();
! mockSubsys.addReturnValue(buffer, "getUserData");
int id = 10;
--- 58,66 ----
*/
public void testNetworkProblems() {
! mockSocket.addThrowException("write", new IOException("problems writing to server"));
ByteBuffer buffer = ByteBuffer.allocate(100);
buffer.put(new byte[] { 1, 2, 3, 4});
buffer.flip();
! mockSubsys.addReturnValue("getUserData", buffer);
int id = 10;
|