summaryrefslogtreecommitdiff
path: root/qpid/java/client/test/src
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-11-15 16:07:31 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-11-15 16:07:31 +0000
commit005092fd67aa8432e022de48175529142491f4f5 (patch)
tree5e9d7017e4b9b91f718950556e61c745551d16c8 /qpid/java/client/test/src
parenteb3447946c3b812f89b95e220ec886da94bcaef2 (diff)
downloadqpid-python-005092fd67aa8432e022de48175529142491f4f5.tar.gz
QPID-92 Changes to bring MINA use up to MINA-Head (1.1.0) compatibility
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@475286 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/test/src')
-rw-r--r--qpid/java/client/test/src/org/apache/qpid/codec/BasicDeliverTest.java7
-rw-r--r--qpid/java/client/test/src/org/apache/qpid/codec/Client.java6
-rw-r--r--qpid/java/client/test/src/org/apache/qpid/codec/Server.java7
-rw-r--r--qpid/java/client/test/src/org/apache/qpid/test/unit/client/protocol/TestIoSession.java6
4 files changed, 13 insertions, 13 deletions
diff --git a/qpid/java/client/test/src/org/apache/qpid/codec/BasicDeliverTest.java b/qpid/java/client/test/src/org/apache/qpid/codec/BasicDeliverTest.java
index 892b349cea..ecbf3ad230 100644
--- a/qpid/java/client/test/src/org/apache/qpid/codec/BasicDeliverTest.java
+++ b/qpid/java/client/test/src/org/apache/qpid/codec/BasicDeliverTest.java
@@ -159,11 +159,6 @@ public class BasicDeliverTest
return null; //To change body of implemented methods use File | Settings | File Templates.
}
- public IoServiceConfig getServiceConfig()
- {
- return null;
- }
-
public IoHandler getHandler()
{
return null; //To change body of implemented methods use File | Settings | File Templates.
@@ -199,7 +194,7 @@ public class BasicDeliverTest
return null; //To change body of implemented methods use File | Settings | File Templates.
}
- public int getScheduledWriteRequests()
+ public int getScheduledWriteMessages()
{
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
diff --git a/qpid/java/client/test/src/org/apache/qpid/codec/Client.java b/qpid/java/client/test/src/org/apache/qpid/codec/Client.java
index c0de5ab133..b015c08afb 100644
--- a/qpid/java/client/test/src/org/apache/qpid/codec/Client.java
+++ b/qpid/java/client/test/src/org/apache/qpid/codec/Client.java
@@ -53,7 +53,11 @@ public class Client extends IoHandlerAdapter
AMQDataBlock block = BasicDeliverTest.getDataBlock(size);
InetSocketAddress address = new InetSocketAddress(host, port);
- ConnectFuture future = new SocketConnector().connect(address, this);
+
+ SocketConnector ioConnector = new SocketConnector();
+ ioConnector.setHandler(this);
+ ConnectFuture future = ioConnector.connect(address);
+
future.join();
_session = future.getSession();
diff --git a/qpid/java/client/test/src/org/apache/qpid/codec/Server.java b/qpid/java/client/test/src/org/apache/qpid/codec/Server.java
index fa4295e0b2..2639656e41 100644
--- a/qpid/java/client/test/src/org/apache/qpid/codec/Server.java
+++ b/qpid/java/client/test/src/org/apache/qpid/codec/Server.java
@@ -34,7 +34,12 @@ public class Server extends IoHandlerAdapter
{
Server(int port) throws Exception
{
- new SocketAcceptor().bind(new InetSocketAddress(port), this);
+
+ SocketAcceptor acceptor = new SocketAcceptor();
+
+ acceptor.setLocalAddress(new InetSocketAddress(port));
+ acceptor.setHandler(this);
+ acceptor.bind();
System.out.println("Listening on " + port);
}
diff --git a/qpid/java/client/test/src/org/apache/qpid/test/unit/client/protocol/TestIoSession.java b/qpid/java/client/test/src/org/apache/qpid/test/unit/client/protocol/TestIoSession.java
index e800afc7ba..50940aa166 100644
--- a/qpid/java/client/test/src/org/apache/qpid/test/unit/client/protocol/TestIoSession.java
+++ b/qpid/java/client/test/src/org/apache/qpid/test/unit/client/protocol/TestIoSession.java
@@ -45,10 +45,6 @@ public class TestIoSession extends BaseIoSession {
return null;
}
- public IoServiceConfig getServiceConfig() {
- return null;
- }
-
public IoHandler getHandler() {
return null;
}
@@ -73,7 +69,7 @@ public class TestIoSession extends BaseIoSession {
return null;
}
- public int getScheduledWriteRequests() {
+ public int getScheduledWriteMessages() {
return 0;
}