8889909192939495969798
update.name = "foo"; update.family = "ipv4"; update.moniker = "conf"; update.address = "1.2.3.4"; client.addReceiver(new Recipient() { @Override public void receive(Request request) { Logger logger = LoggerFactory.getLogger(TestComplexSetup.class); try { client.send(update);
4445464748495051525354
@Test public void receiveRequest() throws Exception { final CountDownLatch latch = new CountDownLatch(1); Client client = new Client(); client.addReceiver(new Recipient() { @Override public void receive(Request request) { latch.countDown(); } });
979899100101102103104105106107
@Test public void overhearUpdate() throws Exception { final CountDownLatch latch = new CountDownLatch(1); Client client = new Client(); client.addReceiver(new Recipient() { @Override public void receive(Request request) { latch.countDown(); } });