@Test public void testGetSensorTasks() { List<SensorTask> createdSensorTasks = new ArrayList<SensorTask>(); createdSensorTasks.add(sensorTaskRepository.createNewSensorTask(PROCEDURE_1)); createdSensorTasks.add(sensorTaskRepository.createNewSensorTask(PROCEDURE_1)); assertAmountOfCreatedTasksAvailable(sensorTaskRepository, PROCEDURE_1, 2); assertCorrectSensorTaskList(sensorTaskRepository, sensorTaskRepository.getSensorTasks(PROCEDURE_1)); }
public Iterable<SensorTask> getSensorTasks(String procedure) { return getAllSensorTasksFor(procedure); }
InMemorySensorTaskRepository implements SensorTaskRepository { public Iterable<SensorTask> getSensorTasks(String procedure) { return getAllSensorTasksFor(procedure); } }
InMemorySensorTaskRepository implements SensorTaskRepository { public Iterable<SensorTask> getSensorTasks(String procedure) { return getAllSensorTasksFor(procedure); }  }
InMemorySensorTaskRepository implements SensorTaskRepository { public Iterable<SensorTask> getSensorTasks(String procedure) { return getAllSensorTasksFor(procedure); }  SensorTask createNewSensorTask(String procedure); void saveOrUpdateSensorTask(SensorTask sensorTask); void removeSensorTask(SensorTask sensorTask); boolean containsSensorTask(String procedure, String taskId); SensorTask getTask(String taskId); Iterable<String> getSensorTaskIds(String procedure); Iterable<SensorTask> getSensorTasks(String procedure); SensorTask getSensorTask(String procedure, String taskId); IdWithPrefixGenerator getIdGenerator(); long getTaskAmountOf(String procedure); }
InMemorySensorTaskRepository implements SensorTaskRepository { public Iterable<SensorTask> getSensorTasks(String procedure) { return getAllSensorTasksFor(procedure); }  SensorTask createNewSensorTask(String procedure); void saveOrUpdateSensorTask(SensorTask sensorTask); void removeSensorTask(SensorTask sensorTask); boolean containsSensorTask(String procedure, String taskId); SensorTask getTask(String taskId); Iterable<String> getSensorTaskIds(String procedure); Iterable<SensorTask> getSensorTasks(String procedure); SensorTask getSensorTask(String procedure, String taskId); IdWithPrefixGenerator getIdGenerator(); long getTaskAmountOf(String procedure);  }