assertNull(store.readTask(new TaskDescription(task.getUserId(), task.getId(), true)));
}
@Test
public void readAllTasksTest() {
TaskInfo task1 = new TaskInfo("test", "taskid1", true);
task1.done(Status.OK_STATUS);
TaskInfo task2 = new TaskInfo("test", "taskid2", true);
task2.done(Status.OK_STATUS);
TaskStore store = new TaskStore(tempDir);
store.writeTask(new TaskDescription("test", task1.getId(), true), task1.toJSON().toString());
assertEquals(1, store.readAllTasks("test"));
store.writeTask(new TaskDescription("test", task2.getId(), true), task2.toJSON().toString());
assertEquals(2, store.readAllTasks("test"));
store.removeTask(new TaskDescription("test", task1.getId(), true));
assertEquals(1, store.readAllTasks("test"));
}