package guitests;

import org.junit.Test;

import seedu.taskboss.commons.core.Messages;
import seedu.taskboss.logic.commands.SaveCommand;

public class SaveCommandTest extends TaskBossGuiTest {

    @Test
    public void save() {
        //invalid filepath
        commandBox.runCommand("save C://user/desktop/^*+#");
        assertResultMessage(SaveCommand.MESSAGE_INVALID_FILEPATH);

        //valid filepath
        commandBox.runCommand("save C://user/desktop/taskboss");
        assertResultMessage(SaveCommand.MESSAGE_SUCCESS);

        //invalid command
        commandBox.runCommand("saveC://user/desktop/taskboss");
        assertResultMessage(Messages.MESSAGE_UNKNOWN_COMMAND);
    }
}

@@ -524,24 +524,191 @@
 _SUCCESS);%0A%0A
+        //valid filepath using short command%0A        commandBox.runCommand(%22sv C://user/desktop/taskboss%22);%0A        assertResultMessage(SaveCommand.MESSAGE_SUCCESS);%0A%0A
         //in

Include short command test