@@ -0,0 +1,3021 @@
+package seedu.todo.guitests;%0A%0Aimport java.time.LocalDateTime;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport seedu.todo.commons.util.DateUtil;%0Aimport seedu.todo.models.Event;%0Aimport seedu.todo.models.Task;%0A%0A/*%0A * @@author A0093907W%0A */%0Apublic class ClearCommandTest extends GuiTest %7B%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    String commandAdd3 = String.format(%22add event Some Event from %5C%22%25s 4pm%5C%22 to %5C%22%25s 5pm%5C%22%22,%0A            oneDayFromNowString, oneDayFromNowString);%0A    Event event3 = new Event();%0A    String commandAdd4 = String.format(%22add event Another Event from %5C%22%25s 8pm%5C%22 to %5C%22%25s 9pm%5C%22%22,%0A            twoDaysFromNowString, twoDaysFromNowString);%0A    Event event4 = new Event();%0A    %0A    public ClearCommandTest() %7B%0A        task1.setName(%22Buy KOI%22);%0A        task1.setCalendarDateTime(DateUtil.parseDateTime(%0A                String.format(%22%25s 20:00:00%22, oneDayFromNowIsoString)));%0A        task2.setName(%22Buy Milk%22);%0A        %0A        task2.setDueDate(DateUtil.parseDateTime(%0A                String.format(%22%25s 21:00:00%22, twoDaysFromNowIsoString)));%0A        %0A        event3.setName(%22Some Event%22);%0A        event3.setStartDate(DateUtil.parseDateTime(%0A                String.format(%22%25s 16:00:00%22, oneDayFromNowIsoString)));%0A        event3.setEndDate(DateUtil.parseDateTime(%0A                String.format(%22%25s 17:00:00%22, oneDayFromNowIsoString)));%0A        %0A        event4.setName(%22Another Event%22);%0A        event4.setStartDate(DateUtil.parseDateTime(%0A                String.format(%22%25s 20:00:00%22, twoDaysFromNowIsoString)));%0A        event4.setEndDate(DateUtil.parseDateTime(%0A                String.format(%22%25s 21:00:00%22, twoDaysFromNowIsoString)));%0A    %7D%0A    %0A    @Before%0A    public void initFixtures() %7B%0A        console.runCommand(%22clear%22);%0A        assertTaskVisibleAfterCmd(commandAdd1, task1);%0A        assertTaskVisibleAfterCmd(commandAdd2, task2);%0A        assertEventVisibleAfterCmd(commandAdd3, event3);%0A        assertEventVisibleAfterCmd(commandAdd4, event4);%0A    %7D%0A    %0A    @Test%0A    public void fixtures_test() %7B%0A        console.runCommand(%22clear%22);%0A        assertTaskNotVisibleAfterCmd(%22list%22, task1);%0A        assertTaskNotVisibleAfterCmd(%22list%22, task2);%0A        assertEventNotVisibleAfterCmd(%22list%22, event3);%0A        assertEventNotVisibleAfterCmd(%22list%22, event4);%0A    %7D%0A%7D%0A

Set up fixtures. Should do this for other tests too actually ><