Package io.crate.http

Examples of io.crate.http.HttpTestServer.run()


    }

    @Test
    public void testSuccessfulPingTaskRun() throws Exception {
        HttpTestServer testServer = new HttpTestServer(18080, false);
        testServer.run();

        PingTask task = new PingTask(
                clusterService, clusterIdService, httpServerTransport, "http://localhost:18080/");
        task.run();
        assertThat(testServer.responses.size(), is(1));
View Full Code Here


    }

    @Test
    public void testUnsuccessfulPingTaskRun() throws Exception {
        HttpTestServer testServer = new HttpTestServer(18081, true);
        testServer.run();
        PingTask task = new PingTask(
                clusterService, clusterIdService, httpServerTransport, "http://localhost:18081/");
        task.run();
        assertThat(testServer.responses.size(), is(1));
        task.run();
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.