Package com.datastax.driver.core

Examples of com.datastax.driver.core.TestHost


    @Test
    public void testToHostAddressList()
            throws Exception
    {
        Set<Host> hosts = ImmutableSet.<Host>of(
                new TestHost(InetAddress.getByAddress(new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16})),
                new TestHost(InetAddress.getByAddress(new byte[] {1, 2, 3, 4})));

        HostAddressFactory hostAddressFactory = new HostAddressFactory();
        List<HostAddress> list = hostAddressFactory.toHostAddressList(hosts);

        assertEquals("[[102:304:506:708:90a:b0c:d0e:f10], 1.2.3.4]", list.toString());
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.TestHost

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.