297298299300301302303304305306307
} }); request.end(); try { responseCode.wait(10000); } catch (InterruptedException e) { e.printStackTrace(); } }
131132133134135136137138139140141
}; final AtomicInteger ctx = new AtomicInteger(3); ZKUtil.deleteRecursive(zk, "/a", cb, ctx); synchronized (ctx) { ctx.wait(); } Assert.assertEquals(4, ((AtomicInteger) ctx).get()); } @Test