@Test public void testAsyncCreateThree() { CountDownLatch latch = new CountDownLatch(3); StringCB op1 = new StringCB(zk, latch); op1.setPath("/op1"); StringCB op2 = new StringCB(zk, latch); op2.setPath("/op2"); StringCB op3 = new StringCB(zk, latch); op3.setPath("/op3"); op1.create(); op2.create(); op3.create(); op1.verify(); op2.verify(); op3.verify(); }
@Test public void testAsyncCreate() { new StringCB(zk).verifyCreate(); }
@Test public void testAsyncCreateFailure_NodeExists() { new StringCB(zk).verifyCreateFailure_NodeExists(); }
@Test public void testAsyncCreateFailure_NoNode() { new StringCB(zk).verifyCreateFailure_NoNode(); }
@Test public void testAsyncCreateFailure_NoChildForEphemeral() { new StringCB(zk).verifyCreateFailure_NoChildForEphemeral(); }