383384385386387388389390391392393
Assert.assertFalse(ok); bg.stop(); dg.stop(); } public void testSimpleBroadcastDifferentAddressAndPort() throws Exception { final InetAddress groupAddress = InetAddress.getByName(DiscoveryTest.address1);
426427428429430431432433434435436
Assert.assertFalse(ok); bg.stop(); dg.stop(); } public void testMultipleGroups() throws Exception { final int groupPort1 = getUDPDiscoveryPort();
103104105106107108109110111112113
List<DiscoveryEntry> entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); bg.stop(); dg.stop(); } public void testSimpleBroadcastSpecificNIC() throws Exception {
190191192193194195196197198199200
List<DiscoveryEntry> entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); bg.stop(); dg.stop(); } public void testSimpleBroadcastWithStopStartDiscoveryGroup() throws Exception {
236237238239240241242243244245246
List<DiscoveryEntry> entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); bg.stop(); dg.stop(); dg.start(); bg.start();
251252253254255256257258259260261
Assert.assertTrue(ok); entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); dg.stop(); bg.stop(); } public void testIgnoreTrafficFromOwnNode() throws Exception
301302303304305306307308309310311
Assert.assertEquals(0, entries.size()); bg.stop(); dg.stop(); } // There is a bug in some OSes where different addresses but *Same port* will receive the traffic - hence this test // won't pass
386387388389390391392393394395396
Assert.assertFalse(ok); bg.stop(); dg.stop(); } public void testSimpleBroadcastDifferentAddressAndPort() throws Exception { final InetAddress groupAddress = InetAddress.getByName(address1);
429430431432433434435436437438439
542543544545546547548549550551552
bg2.stop(); bg3.stop(); dg1.stop(); dg2.stop(); dg3.stop(); } // -- fix this test // public void testBroadcastNullBackup() throws Exception // {