@@ -0,0 +1,1876 @@
+package seedu.todo.guitests;%0A%0Aimport static org.junit.Assert.*;%0Aimport static seedu.todo.testutil.AssertUtil.assertSameDate;%0A%0Aimport java.time.LocalDate;%0Aimport java.time.LocalDateTime;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport seedu.todo.commons.util.DateUtil;%0Aimport seedu.todo.guitests.guihandles.TaskListDateItemHandle;%0Aimport seedu.todo.guitests.guihandles.TaskListEventItemHandle;%0Aimport seedu.todo.guitests.guihandles.TaskListTaskItemHandle;%0Aimport seedu.todo.models.Task;%0Aimport seedu.todo.models.TodoListDB;%0A%0A/**%0A * @@author A0093907W%0A */%0Apublic class UndoRedoCommandTest extends GuiTest %7B%0A%0A    private final LocalDateTime oneDayFromNow = LocalDateTime.now().plusDays(1);%0A    private final String oneDayFromNowString = DateUtil.formatDate(oneDayFromNow);%0A    private final String oneDayFromNowIsoString = DateUtil.formatIsoDate(oneDayFromNow);%0A    private final LocalDateTime twoDaysFromNow = LocalDateTime.now().plusDays(2);%0A    private final String twoDaysFromNowString = DateUtil.formatDate(twoDaysFromNow);%0A    private final String twoDaysFromNowIsoString = DateUtil.formatIsoDate(twoDaysFromNow);%0A    %0A    String commandAdd1 = String.format(%22add task Buy KOI by %5C%22%25s 8pm%5C%22%22, oneDayFromNowString);%0A    Task task1 = new Task();%0A    String commandAdd2 = String.format(%22add task Buy Milk by %5C%22%25s 9pm%5C%22%22, twoDaysFromNowString);%0A    Task task2 = new Task();%0A    %0A    public UndoRedoCommandTest() %7B%0A        task1.setName(%22Buy KOI%22);%0A        task1.setCalendarDateTime(DateUtil.parseDateTime(String.format(%22%25s 20:00:00%22, oneDayFromNowIsoString)));%0A        task2.setName(%22Buy Milk%22);%0A        task2.setDueDate(DateUtil.parseDateTime(String.format(%22%25s 21:00:00%22, twoDaysFromNowIsoString)));%0A    %7D%0A    %0A    @Before%0A    public void resetDB() %7B%0A        TodoListDB db = TodoListDB.getInstance();%0A        db.destroyAllEvent();%0A        db.destroyAllTask();%0A    %7D%0A%7D%0A

Set up for undo/redo tests