@Test public void successfulDeletionIfNoHostReturned() throws FreeIpaClientException { when(freeIpaClient.findAllHost()).thenReturn(Set.of()); Set<String> hosts = Set.of("host1", "host2"); Pair<Set<String>, Map<String, String>> result = underTest.removeHosts(freeIpaClient, hosts); assertTrue(result.getSecond().isEmpty()); assertEquals(0, result.getFirst().size()); }
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);  }