package guitests;

public class RedoCommandTest extends TaskManagerGuiTest {

}

@@ -16,65 +16,745 @@
 s;%0A%0A
-public class RedoCommandTest extends TaskManagerGuiTest %7B
+import org.junit.Test;%0A%0Aimport seedu.address.logic.commands.UndoCommand;%0Aimport seedu.address.testutil.TestTask;%0Aimport seedu.address.testutil.TestUtil;%0A%0Apublic class RedoCommandTest extends TaskManagerGuiTest %7B%0A%0A    TestTask%5B%5D expectedList = td.getTypicalTasks();%0A    TestTask%5B%5D currentList = expectedList;%0A%0A%0A    public void redo() %7B%0A        redoAdd();%0A    %7D%0A%0A    /**%0A     * Tries to redo an add command%0A     */%0A    @Test%0A    public void redoAdd() %7B%0A        TestTask taskToAdd = td.alice;%0A        commandBox.runCommand(taskToAdd.getAddCommand());%0A        commandBox.runCommand(UndoCommand.COMMAND_WORD);%0A        expectedList = TestUtil.addTasksToList(expectedList, taskToAdd);%0A        assertRedoSuccess(currentList, expectedList);%0A    %7D
 %0A%0A%7D%0A

Test case for redo add command