Package com.basho.riak.client.core.fixture

Examples of com.basho.riak.client.core.fixture.NetworkTestFixture


    public void setUp() throws IOException
    {
        fixtures = new NetworkTestFixture[3];
        for (int i = 0, j = 5000; i < 3; i++, j += 1000)
        {
            fixtures[i] = new NetworkTestFixture(j);
            new Thread(fixtures[i]).start();
        }
    }
View Full Code Here


    static int startingPort = 5000;
   
    @BeforeClass
    public static void installFixture() throws IOException
    {
        fixture = new NetworkTestFixture(startingPort);
        new Thread(fixture).start();
    }
View Full Code Here

            node.shutdown().get();
        }
        finally
        {
            fixture = new NetworkTestFixture(startingPort);
            new Thread(fixture).start();
        }
    }
View Full Code Here

            assertEquals(node.getNodeState(), State.HEALTH_CHECKING);

        }
        finally
        {
            fixture = new NetworkTestFixture(startingPort);
            new Thread(fixture).start();
        }
       
        Thread.sleep(1000);
       
View Full Code Here

            verify(mockListener).nodeStateChanged(node, RiakNode.State.HEALTH_CHECKING);
            assertEquals(RiakNode.State.HEALTH_CHECKING, node.getNodeState());
        }
        finally
        {
            fixture = new NetworkTestFixture(startingPort);
            new Thread(fixture).start();
        }
       
        node.shutdown().get();
       
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.fixture.NetworkTestFixture

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.