@Test public void selectHostsToBeTurnedOffWhenTheGivenNumberIsGreaterThanTheNumberOfHosts() { assertEquals(getTestHosts().size(), randomHostSelector.selectHostsToBeTurnedOff(getTestHosts(), getTestHosts().size() + 1).size()); }
@Override public List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts) { return selectHosts(candidateHosts, nHosts); }
RandomHostSelector implements HostSelector { @Override public List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts) { return selectHosts(candidateHosts, nHosts); } }
RandomHostSelector implements HostSelector { @Override public List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts) { return selectHosts(candidateHosts, nHosts); }  }
RandomHostSelector implements HostSelector { @Override public List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts) { return selectHosts(candidateHosts, nHosts); }  @Override List<Host> selectHostsToBeTurnedOn(List<Host> candidateHosts, int nHosts); @Override List<Host> selectHostsToBeTurnedOn(List<Host> candidateHosts, int minCpus, int maxCpus); @Override List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts); @Override List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int minCpus, int maxCpus); }
RandomHostSelector implements HostSelector { @Override public List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts) { return selectHosts(candidateHosts, nHosts); }  @Override List<Host> selectHostsToBeTurnedOn(List<Host> candidateHosts, int nHosts); @Override List<Host> selectHostsToBeTurnedOn(List<Host> candidateHosts, int minCpus, int maxCpus); @Override List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts); @Override List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int minCpus, int maxCpus);  }