@Test public void doesntMatchUnhealthyTask() { boolean matches = environment.isMatchingTask(defaultTask().status("STOPPED").build()); assertThat(matches).isFalse(); }
public boolean isMatchingTask(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && HEALTHY_STATES.contains(t.getStatus()); }
DaemonEnvironment { public boolean isMatchingTask(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && HEALTHY_STATES.contains(t.getStatus()); } }
DaemonEnvironment { public boolean isMatchingTask(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && HEALTHY_STATES.contains(t.getStatus()); }  }
DaemonEnvironment { public boolean isMatchingTask(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && HEALTHY_STATES.contains(t.getStatus()); }  boolean isMissingHealthyTask(List<Task> tasks); StartTask startTaskFor(ContainerInstance i); StopTask stopTaskFor(final Task task); boolean isTaskStoppable(Task t); boolean isMatchingTask(Task t); }
DaemonEnvironment { public boolean isMatchingTask(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && HEALTHY_STATES.contains(t.getStatus()); }  boolean isMissingHealthyTask(List<Task> tasks); StartTask startTaskFor(ContainerInstance i); StopTask stopTaskFor(final Task task); boolean isTaskStoppable(Task t); boolean isMatchingTask(Task t);  }