File Cleanup - Event to JMX

This commit is contained in:
Gary Russell
2016-06-04 11:39:43 -04:00
parent e16f084628
commit 8e3622757d
55 changed files with 202 additions and 152 deletions

View File

@@ -345,6 +345,7 @@ public class UdpChannelAdapterTests {
socket.receive(packet);
assertEquals("FOO", new String(packet.getData()));
assertEquals(receiverServerPort, packet.getPort());
socket.close();
context.close();
}

View File

@@ -157,6 +157,7 @@ public class UdpMulticastEndToEndTests implements Runnable {
@Override
@SuppressWarnings("unchecked")
public void run() {
@SuppressWarnings("resource")
AbstractApplicationContext ctx = new ClassPathXmlApplicationContext(
"testIp-in-multicast-context.xml",
UdpMulticastEndToEndTests.class);
@@ -196,7 +197,6 @@ public class UdpMulticastEndToEndTests implements Runnable {
e.printStackTrace();
}
}
ctx.stop();
ctx.close();
}