@Test public void testFindInstances_shouldFindNothingForBogusService() throws ExecutionException, InterruptedException { final List<ServiceInstance> instances = ConsulAPI.getCatalog().findInstances("ImAmNotAService", "").get(); Assert.assertNotNull(instances); Assert.assertTrue(instances.isEmpty()); }
public static ConsulCatalog getCatalog() { return ConsulCatalogHolder.INSTANCE; }
ConsulAPI { public static ConsulCatalog getCatalog() { return ConsulCatalogHolder.INSTANCE; } }
ConsulAPI { public static ConsulCatalog getCatalog() { return ConsulCatalogHolder.INSTANCE; }  }
ConsulAPI { public static ConsulCatalog getCatalog() { return ConsulCatalogHolder.INSTANCE; }  static ConsulServiceRegistry getServiceRegistry(); static ConsulServiceRegistry getServiceRegistryV1(); static ConsulCatalog getCatalog(); static ConsulHealth getHealth(); }
ConsulAPI { public static ConsulCatalog getCatalog() { return ConsulCatalogHolder.INSTANCE; }  static ConsulServiceRegistry getServiceRegistry(); static ConsulServiceRegistry getServiceRegistryV1(); static ConsulCatalog getCatalog(); static ConsulHealth getHealth();  }