/** * Cannot run with the fake cluster manager. * Subclasses need to override the method and call <code>super.testLockReleasedForClosedNode()</code>. */ @Test @Ignore public void testLockReleasedForClosedNode() throws Exception { testLockReleased(latch -> { vertices[0].close(onSuccess(v -> { latch.countDown(); })); }); }
/** * Cannot run with the fake cluster manager. * Subclasses need to override the method and call <code>super.testLockReleasedForKilledNode()</code>. */ @Test @Ignore public void testLockReleasedForKilledNode() throws Exception { testLockReleased(latch -> { VertxInternal vi = (VertxInternal) vertices[0]; vi.getClusterManager().leave(onSuccess(v -> { latch.countDown(); })); }); }
/** * Cannot run with the fake cluster manager. * Subclasses need to override the method and call <code>super.testLockReleasedForClosedNode()</code>. */ @Test @Ignore public void testLockReleasedForClosedNode() throws Exception { testLockReleased(latch -> { vertices[0].close(onSuccess(v -> { latch.countDown(); })); }); }
/** * Cannot run with the fake cluster manager. * Subclasses need to override the method and call <code>super.testLockReleasedForKilledNode()</code>. */ @Test @Ignore public void testLockReleasedForKilledNode() throws Exception { testLockReleased(latch -> { VertxInternal vi = (VertxInternal) vertices[0]; vi.getClusterManager().leave(onSuccess(v -> { latch.countDown(); })); }); }