Package net.windwards.dnsfrontend.client

Examples of net.windwards.dnsfrontend.client.Client.disconnect()


                "  \"name\": \"foo\" }");

        Assert.assertEquals(1, latch.getCount());
        Assert.assertTrue(latch.await(200, TimeUnit.MILLISECONDS));

        client.disconnect();
        server.shutdown();
    }

    @Test
    public void sendUpdate() throws Exception {
View Full Code Here


        Thread.sleep(200);

        Assert.assertEquals(1, server.received.size());

        client.disconnect();
        server.shutdown();
    }

    @Test
    public void overhearUpdate() throws Exception {
View Full Code Here

                "\"moniker\": \"bar\" }");

        Assert.assertEquals(1, latch.getCount());
        Assert.assertFalse(latch.await(200, TimeUnit.MILLISECONDS));

        client.disconnect();
        server.shutdown();

    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.