@@ -0,0 +1,2136 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Aimport seedu.jobs.model.task.UniqueTaskList.IllegalTimeException;%0Aimport seedu.jobs.testutil.TestTask;%0A%0A//@@author A0164440M%0Apublic class ListCommandTest extends TaskBookGuiTest %7B%0A%0A    @Test%0A  //TODO add success cases listed by all, complete, in-progress%0A    public void list_nonEmptyList() throws IllegalArgumentException, IllegalTimeException %7B%0A%0A        //list all tasks%0A        assertListWithoutArgumentResult(%22list%22, td.CS3101, td.CS3102, td.CS3103, td.CS3104,%0A                td.CS3105, td.CS3106, td.CS3107, td.CS5101);%0A%0A        // complete some tasks%0A        int completeTasks = 6;%0A        for (int i = 0; i %3C completeTasks; i++) %7B%0A            commandBox.runCommand(%22complete %22 + (i + 1));%0A        %7D%0A%0A        // list all completed tasks%0A        assertListWithArgumentResult(%22list complete%22, td.CS3101, td.CS3102, td.CS3103, td.CS3104,%0A                td.CS3105, td.CS3106);%0A%0A        // list all in-progress tasks%0A        assertListWithArgumentResult(%22list in-progress%22, td.CS3107, td.CS5101);%0A    %7D%0A%0A    @Test%0A    public void find_emptyList() throws IllegalArgumentException, IllegalTimeException %7B%0A        // list with wrong argument%0A        assertListWithArgumentResult(%22list abc%22);%0A%0A        commandBox.runCommand(%22clear%22);%0A        assertListWithoutArgumentResult(%22list%22); // no results%0A    %7D%0A%0A    private void assertListWithArgumentResult(String command, TestTask... expectedHits)%0A            throws IllegalArgumentException, IllegalTimeException %7B%0A        commandBox.runCommand(command);%0A        assertListSize(expectedHits.length);%0A        assertResultMessage(expectedHits.length + %22 tasks listed!%22);%0A        assertTrue(taskListPanel.isListMatching(expectedHits));%0A    %7D%0A%0A    private void assertListWithoutArgumentResult(String command, TestTask... expectedHits)%0A            throws IllegalArgumentException, IllegalTimeException %7B%0A        commandBox.runCommand(command);%0A        assertListSize(expectedHits.length);%0A        assertResultMessage(%22Listed all tasks%22);%0A        assertTrue(taskListPanel.isListMatching(expectedHits));%0A    %7D%0A%7D%0A

Add test case for list command