Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public void setUp() throws Exception {
   super.setUp();
   client = vertx.createHttpClient(new HttpClientOptions());
 }