Package com.netflix.suro

Examples of com.netflix.suro.SuroServer4Test


    }

    public static List<SuroServer4Test> startServers(int count) throws Exception {
        List<SuroServer4Test> collectors = new LinkedList<SuroServer4Test>();
        for (int i = 0; i < count; ++i) {
            SuroServer4Test c = new SuroServer4Test();
            c.start();
            collectors.add(c);
        }

        return collectors;
    }
View Full Code Here


*/
public class TestSuroPing {

    @Test
    public void pingTest() throws Exception {
        final SuroServer4Test server4Test = new SuroServer4Test();
        server4Test.start();
        SuroPing ping = new SuroPing();
        Server server = new Server("localhost", server4Test.getPort());
        assertEquals(true, ping.isAlive(server));
        server4Test.shutdown();
    }
View Full Code Here

TOP

Related Classes of com.netflix.suro.SuroServer4Test

Copyright © 2018 www.massapicom. 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.