@Test public void noTasksToStopForAnotherEnvironment() { boolean stop = environment.isTaskStoppable( defaultTask().taskDefinitionArn("different-taskdef").group("different-group").build()); assertThat(stop).isFalse(); }
public boolean isTaskStoppable(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && !t.getTaskDefinitionArn().equals(environment.getTaskDefinitionArn()) && HEALTHY_STATES.contains(t.getStatus()); }
DaemonEnvironment { public boolean isTaskStoppable(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && !t.getTaskDefinitionArn().equals(environment.getTaskDefinitionArn()) && HEALTHY_STATES.contains(t.getStatus()); } }
DaemonEnvironment { public boolean isTaskStoppable(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && !t.getTaskDefinitionArn().equals(environment.getTaskDefinitionArn()) && HEALTHY_STATES.contains(t.getStatus()); }  }
DaemonEnvironment { public boolean isTaskStoppable(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && !t.getTaskDefinitionArn().equals(environment.getTaskDefinitionArn()) && 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 isTaskStoppable(Task t) { return t.getGroup().equals(environment.getEnvironmentName()) && !t.getTaskDefinitionArn().equals(environment.getTaskDefinitionArn()) && 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);  }