@@ -0,0 +1,1925 @@
+package guitests;%0A%0A%09import static org.junit.Assert.assertTrue;%0A%09import static seedu.task.logic.commands.CompleteCommand.MESSAGE_COMPLETE_TASK_SUCCESS;%0A%0A%09import org.junit.Test;%0A%0A%09import seedu.task.commons.core.Messages;%0A%09import seedu.task.commons.exceptions.IllegalValueException;%0A%09import seedu.task.logic.commands.CompleteCommand;%0A%09import seedu.task.model.task.*;%0A%09import seedu.task.testutil.TestTask;%0A%0A%09public class CompleteCommandTest extends TaskManagerGuiTest%7B%0A%09%09@Test%0A%09    public void complete() throws IllegalValueException %7B%0A%09%09TestTask%5B%5D currentList=td.getTypicalTasks();%0A%09%09int targetIndex =1;%0A%09%09%0A%09%09//invalid index%0A%09    commandBox.runCommand(%22complete %22 + (currentList.length + 1));%0A%09    assertResultMessage(Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);%0A%09%09%0A%09    //mark the first task as complete%0A%09    commandBox.runCommand(%22complete %22+targetIndex);%0A%09    ReadOnlyTask newTask = taskListPanel.getTask(targetIndex - 1);%0A%09    assertTrue(newTask.getComplete());%0A%09    %0A%09    //confirm the result message is correct%0A%09    assertResultMessage(String.format(MESSAGE_COMPLETE_TASK_SUCCESS, newTask));%0A%09    %0A%09    %0A%09    //mark another task as complete%0A%09    targetIndex=3;%0A%09    commandBox.runCommand(%22complete %22+targetIndex);%0A%09    ReadOnlyTask otherTask = taskListPanel.getTask(targetIndex - 1);%0A%09    assertTrue(otherTask.getComplete());%0A%09    assertResultMessage(String.format(MESSAGE_COMPLETE_TASK_SUCCESS, otherTask));%0A%09%09%0A%09%09%0A%09    //mark the last task as complete%0A%09%09targetIndex = currentList.length;%0A%09%09commandBox.runCommand(%22complete %22+targetIndex);%0A%09%09newTask=taskListPanel.getTask(targetIndex - 1);%0A%09%09assertTrue(newTask.getComplete());%0A%09%09assertResultMessage(String.format(MESSAGE_COMPLETE_TASK_SUCCESS, newTask));%0A%09%09%0A%09%09//mark at an empty list%0A%09%09commandBox.runCommand(%22clear%22);%0A%09    commandBox.runCommand(%22complete %22 + (currentList.length + 1));%0A%09    assertResultMessage(Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);%0A%09%09%0A%09%09%7D%0A%09%0A%7D%0A

Add tests for CompleteCommand