@Test public void getHostsReturnsEmptyWhenThereAreNoHosts() { HostsManager hostsManager = new HostsManager(new ArrayList<Host>()); assertTrue(hostsManager.getHosts().isEmpty()); }
public List<Host> getHosts() { refreshHostsMonitoringInfo(); return Collections.unmodifiableList(hosts); }
HostsManager { public List<Host> getHosts() { refreshHostsMonitoringInfo(); return Collections.unmodifiableList(hosts); } }
HostsManager { public List<Host> getHosts() { refreshHostsMonitoringInfo(); return Collections.unmodifiableList(hosts); } HostsManager(List<Host> hosts); }
HostsManager { public List<Host> getHosts() { refreshHostsMonitoringInfo(); return Collections.unmodifiableList(hosts); } HostsManager(List<Host> hosts); List<Host> getHosts(); Host getHost(String hostname); void pressHostPowerButton(String hostname); }
HostsManager { public List<Host> getHosts() { refreshHostsMonitoringInfo(); return Collections.unmodifiableList(hosts); } HostsManager(List<Host> hosts); List<Host> getHosts(); Host getHost(String hostname); void pressHostPowerButton(String hostname);  }