HCOLL-134 ( release draft cut of the code so that I can test it across my network )

This commit is contained in:
Rob Austin
2014-09-26 15:23:29 +01:00
parent 26a32c7c58
commit c67673a0a2
2 changed files with 42 additions and 5 deletions
@@ -47,4 +47,31 @@ public class NodeDiscoveryHostPortBroadcasterTest extends TestCase {
}
@Test
public void testJustListen() throws IOException, InterruptedException {
final UdpReplicationConfig udpConfig = UdpReplicationConfig
.simple(Inet4Address.getByName("255.255.255.255"), 1235);
final Bytes identifierBitSetBits = new ByteBufferBytes(ByteBuffer.allocate(128 / 8));
final RemoteNodes remoteNodes = new RemoteNodes(identifierBitSetBits);
BytesExternalizableImpl externalizable = new BytesExternalizableImpl(remoteNodes);
final NodeDiscoveryHostPortBroadcaster nodeDiscoveryHostPortBroadcaster
= new NodeDiscoveryHostPortBroadcaster(udpConfig, 1024, externalizable);
externalizable.setModificationNotifier(nodeDiscoveryHostPortBroadcaster);
Thread.sleep(10000000);
}
}