@@ -0,0 +1,1740 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Aimport guitests.guihandles.TaskCardHandle;%0Aimport seedu.tasklist.logic.commands.DoneCommand;%0Aimport seedu.tasklist.testutil.TestTask;%0Aimport seedu.tasklist.testutil.TestUtil;%0A%0A%0A/**%0A * Tests the done Command for 3 types of task%0A * @author A0143355J%0A */%0Apublic class DoneCommandTest extends TaskListGuiTest %7B%0A%0A    // The list of tasks in the task list panel is expected to match this list.%0A    // This list is updated with every successful call to assertDoneSuccess.%0A    TestTask%5B%5D expectedTasksList = td.getTypicalTasks();%0A%0A%0A    /**%0A     * Runs done command to mark the task at the specified index as completed%0A     * Confirms the result is correct%0A     * @param filteredTaskListIndex index of task to mark as complete in filtered list%0A     * @param currentList index of task to mark as complete in the address book.%0A     *      Must refer to the same task as %7B@code filteredTaskListIndex%7D%0A     * @param doneTask is the expected task after marking a task as completed%0A     */%0A    private void assertDoneSuccess(int filteredTaskListIndex, int taskListIndex, TestTask doneTask) %7B%0A        commandBox.runCommand(%22edit %22 + filteredTaskListIndex);%0A%0A        //Confirms the new card is marked as done%0A        TaskCardHandle editedCard = taskListPanel.getTaskCardHandle(filteredTaskListIndex);%0A        assertMatching(doneTask, editedCard);%0A%0A        // confirm the list now contains all previous tasks plus the task with updated details%0A        expectedTasksList%5BtaskListIndex - 1%5D = doneTask;%0A        assertTrue(taskListPanel.isListMatching(expectedTasksList));%0A        assertResultMessage(String.format(DoneCommand.MESSAGE_DONE_TASK_SUCCESS, doneTask));%0A    %7D%0A%7D%0A

add assertDoneSuccess to DoneCommandTest