@@ -0,0 +1,2565 @@
+package seedu.address.model;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collection;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport javafx.collections.FXCollections;%0Aimport javafx.collections.ObservableList;%0Aimport seedu.address.model.tag.Tag;%0Aimport seedu.address.model.task.ReadOnlyTask;%0Aimport seedu.address.model.task.Task;%0Aimport seedu.address.testutil.TypicalTestTasks;%0A%0Apublic class TaskManagerTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    private final TaskManager taskManager = new TaskManager();%0A%0A    @Test%0A    public void constructor() %7B%0A        assertEquals(Collections.emptyList(), taskManager.getTaskList());%0A        assertEquals(Collections.emptyList(), taskManager.getTagList());%0A    %7D%0A%0A    @Test%0A    public void resetData_null_throwsAssertionError() %7B%0A        thrown.expect(AssertionError.class);%0A        taskManager.resetData(null);%0A    %7D%0A%0A    @Test%0A    public void resetData_withValidReadOnlyTaskManager_replacesData() %7B%0A        TaskManager newData = new TypicalTestTasks().getTypicalTaskManager();%0A        taskManager.resetData(newData);%0A        assertEquals(newData, taskManager);%0A    %7D%0A%0A    @Test%0A    public void resetData_withDuplicateTasks_throwsAssertionError() %7B%0A        TypicalTestTasks td = new TypicalTestTasks();%0A        // Repeat td.alice twice%0A        List%3CTask%3E newTasks = Arrays.asList(new Task(td.alice), new Task(td.alice));%0A        List%3CTag%3E newTags = td.alice.getTags().asObservableList();%0A        TaskManagerStub newData = new TaskManagerStub(newTasks, newTags);%0A%0A        thrown.expect(AssertionError.class);%0A        taskManager.resetData(newData);%0A    %7D%0A%0A    /**%0A     * A stub ReadOnlyTaskManager whose tasks and tags lists can violate interface constraints.%0A     */%0A    private static class TaskManagerStub implements ReadOnlyTaskManager %7B%0A        private final ObservableList%3CReadOnlyTask%3E tasks = FXCollections.observableArrayList();%0A        private final ObservableList%3CTag%3E tags = FXCollections.observableArrayList();%0A%0A        TaskManagerStub(Collection%3C? extends ReadOnlyTask%3E tasks, Collection%3C? extends Tag%3E tags) %7B%0A            this.tasks.setAll(tasks);%0A            this.tags.setAll(tags);%0A        %7D%0A%0A        @Override%0A        public ObservableList%3CReadOnlyTask%3E getTaskList() %7B%0A            return tasks;%0A        %7D%0A%0A        @Override%0A        public ObservableList%3CTag%3E getTagList() %7B%0A            return tags;%0A        %7D%0A    %7D%0A%0A%7D%0A

Rename AddressManagerTest to TaskManagerTest