111112113114115116117118119120121
Assert.assertNotNull(entry); Assert.assertEquals(connectorPair, entry.getConnectorPair()); bg.stop(); dg.stop(); }
211212213214215216217218219220221
271272273274275276277278279280281
Assert.assertNotNull(entry); Assert.assertEquals(connectorPair, entry.getConnectorPair()); bg.stop(); dg.stop(); dg.start();
342343344345346347348349350351352
Assert.assertNotNull(entryMap); Assert.assertEquals(0, entryMap.size()); bg.stop(); dg.stop(); }
432433434435436437438439440441442
boolean ok = dg.waitForBroadcast(1000); Assert.assertFalse(ok); bg.stop(); dg.stop(); } public void testSimpleBroadcastDifferentAddressAndPort() throws Exception
480481482483484485486487488489490
boolean ok = dg.waitForBroadcast(1000); Assert.assertFalse(ok); bg.stop(); dg.stop(); } public void testMultipleGroups() throws Exception
101102103104105106107108109110111
Assert.assertTrue(ok); List<DiscoveryEntry> entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); bg.stop(); dg.stop(); }
188189190191192193194195196197198
234235236237238239240241242243244
Assert.assertTrue(ok); List<DiscoveryEntry> entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); bg.stop(); dg.stop(); dg.start();
253254255256257258259260261262263
entries = dg.getDiscoveryEntries(); assertEqualsDiscoveryEntries(Arrays.asList(live1), entries); dg.stop(); bg.stop(); } public void testIgnoreTrafficFromOwnNode() throws Exception { final InetAddress groupAddress = InetAddress.getByName(address1);