@Test public void getAppsAndInstancesNotFound() { when(discoveryClientMock.getServices()).thenReturn(emptyList()); Map<String, List<CoffeeNetApp>> coffeeNetApps = coffeeNetAppService.getApps(); assertThat(coffeeNetApps.entrySet(), hasSize(0)); }
@Override public Map<String, List<CoffeeNetApp>> getApps() { return getApps(AppQuery.builder().build()); }
IntegrationCoffeeNetAppService implements CoffeeNetAppService { @Override public Map<String, List<CoffeeNetApp>> getApps() { return getApps(AppQuery.builder().build()); } }
IntegrationCoffeeNetAppService implements CoffeeNetAppService { @Override public Map<String, List<CoffeeNetApp>> getApps() { return getApps(AppQuery.builder().build()); } IntegrationCoffeeNetAppService(DiscoveryClient discoveryClient); }
IntegrationCoffeeNetAppService implements CoffeeNetAppService { @Override public Map<String, List<CoffeeNetApp>> getApps() { return getApps(AppQuery.builder().build()); } IntegrationCoffeeNetAppService(DiscoveryClient discoveryClient); @Override Map<String, List<CoffeeNetApp>> getApps(); @Override Map<String, List<CoffeeNetApp>> getApps(AppQuery query); }
IntegrationCoffeeNetAppService implements CoffeeNetAppService { @Override public Map<String, List<CoffeeNetApp>> getApps() { return getApps(AppQuery.builder().build()); } IntegrationCoffeeNetAppService(DiscoveryClient discoveryClient); @Override Map<String, List<CoffeeNetApp>> getApps(); @Override Map<String, List<CoffeeNetApp>> getApps(AppQuery query);  }