@Test public void getPowerButtonsToPressReturnsEmptyListWhenThereAreNoOnHostsWithoutVms() { assertEquals(0, justInTimeStrategy.getPowerButtonsToPress(getClusterStateWithoutServersOnWithoutVms()).size()); }
@Override public List<Host> getPowerButtonsToPress(ClusterState clusterState) { return clusterState.getHostsWithoutVmsAndSwitchedOn(); }
JustInTimeStrategy implements PowerButtonStrategy { @Override public List<Host> getPowerButtonsToPress(ClusterState clusterState) { return clusterState.getHostsWithoutVmsAndSwitchedOn(); } }
JustInTimeStrategy implements PowerButtonStrategy { @Override public List<Host> getPowerButtonsToPress(ClusterState clusterState) { return clusterState.getHostsWithoutVmsAndSwitchedOn(); } JustInTimeStrategy(); }
JustInTimeStrategy implements PowerButtonStrategy { @Override public List<Host> getPowerButtonsToPress(ClusterState clusterState) { return clusterState.getHostsWithoutVmsAndSwitchedOn(); } JustInTimeStrategy(); @Override List<Host> getPowerButtonsToPress(ClusterState clusterState); }
JustInTimeStrategy implements PowerButtonStrategy { @Override public List<Host> getPowerButtonsToPress(ClusterState clusterState) { return clusterState.getHostsWithoutVmsAndSwitchedOn(); } JustInTimeStrategy(); @Override List<Host> getPowerButtonsToPress(ClusterState clusterState);  }