package guitests;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import seedu.taskmanager.commons.core.Messages;

public class ListtaskCommandTest extends TaskManagerGuiTest {
	
	//verify ListTaskCommand works by checking size
	@Test
	public void ListTaskCommand() {
		commandBox.runCommand("listtask");
		assertListSize(3); 
	}
	
	@Test
    public void find_invalidCommand1_fail() {
        commandBox.runCommand("listtasks");
        assertResultMessage(Messages.MESSAGE_UNKNOWN_COMMAND);
    }
	
	private void assertListtaskCommandSuccess() {
        commandBox.runCommand("listtask");
        assertResultMessage("Listed all tasks");
    }

}

@@ -54,16 +54,99 @@
 ertTrue;
+%0Aimport static seedu.taskmanager.logic.commands.ListTaskCommand.SHORT_COMMAND_WORD;
 %0A%0Aimport
@@ -424,16 +424,89 @@
 ze(3); %0A
+%09%09commandBox.runCommand(SHORT_COMMAND_WORD);%0A        assertListSize(3); %0A
 %09%7D%0A%09%0A%09@T

Update ListtaskCommandTest to cover SHORT_COMMAND_WORD