@@ -0,0 +1,1472 @@
+package guitests;%0A%0Aimport guitests.guihandles.TaskCardHandle;%0Aimport org.junit.Test;%0Aimport seedu.address.commons.core.Messages;%0Aimport seedu.address.logic.commands.ListCommand;%0Aimport seedu.address.testutil.TestTask;%0A%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class ListCommandTest extends AddressBookGuiTest %7B%0A%0A    @Test%0A    public void list_all_Tasks_Events() %7B%0A    %09TestTask%5B%5D currentList = td.getTypicalTasks();%0A        //list all tasks%0A        assertListResult(%22list tasks%22,td.friend,td.friendEvent,td.lunch,%0A        %09%09td.book,td.work,td.movie);%0A        assertResultMessage(String.format(ListCommand.MESSAGE_TASK_SUCCESS));%0A        %0A        //list all events%0A        assertListResult(%22list events%22, td.meeting,td.travel);%0A        assertResultMessage(String.format(ListCommand.MESSAGE_EVENT_SUCCESS));%0A%0A        //list all items%0A        assertListResult(%22list%22,currentList);%0A        assertResultMessage(String.format(ListCommand.MESSAGE_SUCCESS));%0A        %0A        //list empty lists%0A        commandBox.runCommand(%22clear%22);%0A        assertListResult(%22list%22);%0A        %0A        //invalid command%0A        commandBox.runCommand(%22lists%22);%0A        assertResultMessage(Messages.MESSAGE_UNKNOWN_COMMAND);%0A        %0A        %0A    %7D%0A%0A    private void assertListResult(String command, TestTask... expectedHits ) %7B%0A        commandBox.runCommand(command);%0A        assertListSize(expectedHits.length);%0A        assertTrue(taskListPanel.isListMatching(expectedHits));%0A    %7D%0A%0A%7D%0A

Test cases for ListCommand