Package net.kuujo.copycat.test

Examples of net.kuujo.copycat.test.TestCluster.stop()


    Entry firstEntry = node1.log().firstEntry();
    Assert.assertTrue(firstEntry instanceof SnapshotEntry);
    Assert.assertEquals("Hello world!", new String(((SnapshotEntry) firstEntry).data()));

    cluster.stop();
  }

  /**
   * Tests that the leader replicates its snapshot to far out of sync followers.
   */
 
View Full Code Here


    Assert.assertEquals(800, node2.log().firstIndex());
    Entry firstEntry = node2.log().firstEntry();
    Assert.assertTrue(firstEntry instanceof SnapshotEntry);
    Assert.assertEquals("Hello world!", new String(((SnapshotEntry) firstEntry).data()));

    cluster.stop();
  }

}
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.