protected void tearDown() throws Exception { client.close(); if (server != null) { CountDownLatch latch = new CountDownLatch(1); server.close( ar -> { assertTrue(ar.succeeded()); latch.countDown(); }); awaitLatch(latch); } super.tearDown(); }
public void setUp() throws Exception { super.setUp(); client = vertx.createHttpClient(new HttpClientOptions()); }