Author: ron.sigal(a)jboss.com
Date: 2010-09-07 15:46:30 -0400 (Tue, 07 Sep 2010)
New Revision: 6090
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/ClientServerRemoteSSLConfigurationTestCase.java
Log:
JBREM-1228: createTcpServer() uses port 0.
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/ClientServerRemoteSSLConfigurationTestCase.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/ClientServerRemoteSSLConfigurationTestCase.java 2010-09-07
19:44:50 UTC (rev 6089)
+++
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/ClientServerRemoteSSLConfigurationTestCase.java 2010-09-07
19:46:30 UTC (rev 6090)
@@ -86,8 +86,8 @@
}
@Override
- protected void createTcpServer(ServerPackage sp,
ChannelListener<ConnectedStreamChannel<InetSocketAddress>> listener, int port)
throws IOException {
- log.info(this + " creating SslTcpServer");
+ protected void createTcpServer(ServerPackage sp,
ChannelListener<ConnectedStreamChannel<InetSocketAddress>> listener) throws
IOException {
+ log.debug(this + " creating SslTcpServer");
Builder builder = OptionMap.builder();
builder.setSequence(Options.SSL_ENABLED_CIPHER_SUITES, CIPHER_SUITES);
builder.setSequence(Options.SSL_ENABLED_PROTOCOLS, PROTOCOLS);
@@ -99,7 +99,7 @@
} catch (NoSuchAlgorithmException e) {
throw new IOException(e);
}
- IoFuture<? extends BoundChannel<InetSocketAddress>> future =
sslTcpServer.bind(new InetSocketAddress("localhost", port));
+ IoFuture<? extends BoundChannel<InetSocketAddress>> future =
sslTcpServer.bind(new InetSocketAddress("localhost", 0));
getFutureResult(future, "unable to bind " + sp.tcpServer);
sp.tcpServer = sslTcpServer;
sp.port =
sslTcpServer.getChannels().iterator().next().getLocalAddress().getPort();
Show replies by date