@Test(expected = FreeIpaClientException.class) public void expectFreeIpaClientExceptionIfHostCollectionFails() throws FreeIpaClientException { when(freeIpaClient.findAllHost()).thenThrow(new FreeIpaClientException("error")); underTest.removeHosts(freeIpaClient, Set.of("testHost")); }
public Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts) throws FreeIpaClientException { return removeHosts(client, hosts, false); }
HostDeletionService { public Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts) throws FreeIpaClientException { return removeHosts(client, hosts, false); } }
HostDeletionService { public Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts) throws FreeIpaClientException { return removeHosts(client, hosts, false); }  }
HostDeletionService { public Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts) throws FreeIpaClientException { return removeHosts(client, hosts, false); }  Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts); Pair<Set<String>, Map<String, String>> removeServers(FreeIpaClient client, Set<String> hosts); void deleteHostsWithDeleteException(FreeIpaClient client, Set<String> hosts); }
HostDeletionService { public Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts) throws FreeIpaClientException { return removeHosts(client, hosts, false); }  Pair<Set<String>, Map<String, String>> removeHosts(FreeIpaClient client, Set<String> hosts); Pair<Set<String>, Map<String, String>> removeServers(FreeIpaClient client, Set<String> hosts); void deleteHostsWithDeleteException(FreeIpaClient client, Set<String> hosts);  }