Exemplo n.º 1
0
 public void testSetUpdatingToVersion() throws Exception {
   Ring ring = ZkRing.create(getZk(), coordinator, getRoot(), 1, null, 1);
   ring.markUpdateComplete();
   assertNull(ring.getUpdatingToVersionNumber());
   ring.setUpdatingToVersion(7);
   assertEquals(Integer.valueOf(7), ring.getUpdatingToVersionNumber());
 }
Exemplo n.º 2
0
 public void testSetUpdatingToVersion() throws Exception {
   Ring rc = ZkRing.create(getZk(), getRoot(), 1, null, 1);
   rc.updateComplete();
   assertNull(rc.getUpdatingToVersionNumber());
   rc.setUpdatingToVersion(7);
   assertEquals(Integer.valueOf(7), rc.getUpdatingToVersionNumber());
 }