for (NetworkInterface netint : Collections.list(nets)) {
Enumeration<InetAddress> inetAdresses = netint.getInetAddresses();
for (InetAddress inetAddress : Collections.list(inetAdresses)) {
try {
IRequester req = new Requester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
TestConstants.PORT_SC0_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 1));
SCMPAttachCall attachCall = new SCMPAttachCall(req);
attachCall.invoke(cbk, 1000);
TestUtil.checkReply(cbk.getMessageSync(1000));
SCMPDetachCall detachCall = new SCMPDetachCall(req);
detachCall.invoke(cbk, 1000);
TestUtil.checkReply(cbk.getMessageSync(1000));
req.destroy();
} catch (Exception e) {
Assert.fail("Connection to NIC : " + inetAddress.getHostAddress() + " failed!");
}
}
}