@Test public void testFetchInstancesHealth_fetchHealthyInstance() throws ExecutionException, InterruptedException { final List<HealthInfoInstance> service1Health = ConsulAPI.getHealth().fetchInstancesHealth(SERVICE1_NAME, "").get(); Assert.assertNotNull(service1Health); Assert.assertEquals(1, service1Health.size()); }
public static ConsulHealth getHealth() { return ConsulHealthHolder.INSTANCE; }
ConsulAPI { public static ConsulHealth getHealth() { return ConsulHealthHolder.INSTANCE; } }
ConsulAPI { public static ConsulHealth getHealth() { return ConsulHealthHolder.INSTANCE; }  }
ConsulAPI { public static ConsulHealth getHealth() { return ConsulHealthHolder.INSTANCE; }  static ConsulServiceRegistry getServiceRegistry(); static ConsulServiceRegistry getServiceRegistryV1(); static ConsulCatalog getCatalog(); static ConsulHealth getHealth(); }
ConsulAPI { public static ConsulHealth getHealth() { return ConsulHealthHolder.INSTANCE; }  static ConsulServiceRegistry getServiceRegistry(); static ConsulServiceRegistry getServiceRegistryV1(); static ConsulCatalog getCatalog(); static ConsulHealth getHealth();  }