Author: david.lloyd(a)jboss.com
Date: 2008-07-21 09:16:30 -0400 (Mon, 21 Jul 2008)
New Revision: 4415
Modified:
remoting3/trunk/protocol/basic/src/test/java/org/jboss/cx/remoting/protocol/basic/ConnectionTestCase.java
Log:
Make successful close part of the test
Modified:
remoting3/trunk/protocol/basic/src/test/java/org/jboss/cx/remoting/protocol/basic/ConnectionTestCase.java
===================================================================
---
remoting3/trunk/protocol/basic/src/test/java/org/jboss/cx/remoting/protocol/basic/ConnectionTestCase.java 2008-07-21
13:01:14 UTC (rev 4414)
+++
remoting3/trunk/protocol/basic/src/test/java/org/jboss/cx/remoting/protocol/basic/ConnectionTestCase.java 2008-07-21
13:16:30 UTC (rev 4415)
@@ -120,6 +120,17 @@
try {
final FutureReply<Object>
future = client.send(REQUEST);
assertEquals(REPLY, future.get(500L,
TimeUnit.MILLISECONDS));
+ client.close();
+ clientSource.close();
+ handleThirteen.close();
+ connection.close();
+ connector.close();
+ tcpServerCloseable.close();
+ serviceEndpointHandle.close();
+ serviceRegistry.clear();
+ endpoint.stop();
+ xnio.close();
+ closeableExecutor.close();
} finally {
IoUtils.safeClose(client);
}
Show replies by date