protected void close(Vertx vertx) throws InterruptedException { if (vertx == null) { return; } CountDownLatch latch = new CountDownLatch(1); vertx.close(ar -> { latch.countDown(); }); awaitLatch(latch); }
@Before public void setUp() throws IOException { File manifest = new File("target/test-classes/META-INF/MANIFEST.MF"); if (manifest.isFile()) { manifest.delete(); } super.setUp(); }
@After public void tearDown() throws InterruptedException { stop(); if (os != null) { os.close(); } if (err != null) { err.close(); } try { output.close(); } catch (IOException e) { // Ignore it. } try { error.close(); } catch (IOException e) { // Ignore it. } }
@After public void tearDown() throws InterruptedException { spy.set(false); super.tearDown(); close(vertx); }
@After public void tearDown() throws InterruptedException { super.tearDown(); close(getVertx()); FakeClusterManager.reset(); }
@After public void tearDown() throws InterruptedException { super.tearDown(); final RunCommand run = (RunCommand) cli.getExistingCommandInstance("run"); if (run != null) { Vertx vertx = run.vertx; close(vertx); } FakeClusterManager.reset(); }
@Before public void setUp() throws IOException { super.setUp(); if (manifest.isFile()) { manifest.delete(); } }
protected void close(Vertx vertx) throws InterruptedException { if (vertx == null) { return; } CountDownLatch latch = new CountDownLatch(1); vertx.close(ar -> { latch.countDown(); }); awaitLatch(latch); }
@After public void tearDown() throws InterruptedException { stop(); if (os != null) { os.close(); } if (err != null) { err.close(); } try { output.close(); } catch (IOException e) { // Ignore it. } try { error.close(); } catch (IOException e) { // Ignore it. } }
@After public void tearDown() throws InterruptedException { super.tearDown(); final RunCommand run = (RunCommand) cli.getExistingCommandInstance("run"); if (run != null) { Vertx vertx = run.vertx; close(vertx); run.stopBackgroundApplication(null); run.shutdownRedeployment(); } FakeClusterManager.reset(); waitForTermination(); }
@Before public void setUp() throws IOException { super.setUp(); if (manifest.isFile()) { manifest.delete(); } }
@After public void tearDown() throws InterruptedException { spy.set(false); super.tearDown(); close(vertx); }
@Before public void setUp() throws IOException { File manifest = new File("target/test-classes/META-INF/MANIFEST.MF"); if (manifest.isFile()) { manifest.delete(); } super.setUp(); }
@After public void tearDown() throws InterruptedException { super.tearDown(); close(getVertx()); FakeClusterManager.reset(); }
@After public void tearDown() throws InterruptedException { super.tearDown(); final RunCommand run = (RunCommand) cli.getExistingCommandInstance("run"); if (run != null) { Vertx vertx = run.vertx; close(vertx); } FakeClusterManager.reset(); }
@After public void tearDown() throws InterruptedException { super.tearDown(); final RunCommand run = (RunCommand) cli.getExistingCommandInstance("run"); if (run != null) { Vertx vertx = run.vertx; close(vertx); run.stopBackgroundApplication(null); run.shutdownRedeployment(); } FakeClusterManager.reset(); waitForTermination(); }