Package halfpipe.consul.model

Examples of halfpipe.consul.model.ServiceNode


    public void testGetService() {
        List<ServiceNode> serviceNodes = client.getServiceNodes("consul");
        assertNotNull(serviceNodes, "serviceNodes is null");
        assertFalse(serviceNodes.isEmpty(), "serviceNodes is empty");

        ServiceNode node = serviceNodes.get(0);

        assertNotNull(node.getAddress(), "address is null");
        assertNotNull(node.getNode(), "node is null");
        assertNotNull(node.getServiceID(), "serviceId is null");
        assertNotNull(node.getServiceName(), "serviceName is null");
        assertTrue(node.getServicePort() > 0, "servicePort is wrong");
    }
View Full Code Here

TOP

Related Classes of halfpipe.consul.model.ServiceNode

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.