package guitests;

import static seedu.taskitty.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;

import org.junit.Test;

import seedu.taskitty.logic.commands.SaveCommand;

//@@author A0135793W
public class SaveCommandTest extends TaskManagerGuiTest {

    @Test
    public void save() {
        commandBox.runCommand("save temp");
        assertResultMessage(String.format(SaveCommand.MESSAGE_SUCCESS, "temp"));
        
        //no filepath
        commandBox.runCommand("save");
        assertResultMessage(String.format(MESSAGE_INVALID_COMMAND_FORMAT, SaveCommand.MESSAGE_USAGE));
        
        commandBox.runCommand("save ");
        assertResultMessage(String.format(MESSAGE_INVALID_COMMAND_FORMAT, SaveCommand.MESSAGE_USAGE));
    }

}

@@ -120,16 +120,62 @@
 .Test;%0A%0A
+import seedu.taskitty.logic.commands.Command;%0A
 import s
@@ -592,32 +592,73 @@
 _COMMAND_FORMAT,
+%0A                Command.MESSAGE_FORMAT +
  SaveCommand.MES
@@ -654,37 +654,41 @@
 Command.MESSAGE_
-USAGE
+PARAMETER
 ));%0A        %0A   
@@ -797,16 +797,57 @@
 _FORMAT,
+%0A                Command.MESSAGE_FORMAT +
  SaveCom
@@ -863,13 +863,17 @@
 AGE_
-USAGE
+PARAMETER
 ));%0A

Fix SaveCommand tests