@Test public void testServices() throws ExecutionException, InterruptedException { final Map<String, Set<String>> services = ConsulAPI.getCatalog().services("").get(); System.out.println("QQQQQQQQQQQQQQQQQQQQQQ "+services); Assert.assertNotNull(services); Assert.assertTrue(services.containsKey(SERVICE1_NAME)); Assert.assertTrue(services.containsKey(SERVICE2_NAME)); Assert.assertTrue(services.get(SERVICE1_NAME).containsAll(SERVICE1_REGISTRATION.getTags())); Assert.assertTrue(services.get(SERVICE2_NAME).containsAll(SERVICE2_REGISTRATION.getTags())); }
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();  }