package guitests;

import org.junit.Test;

import seedu.ezdo.logic.commands.SaveCommand;
import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;

public class SaveCommandTest extends EzDoGuiTest {

    private final String validDirectory = "data/";
    private final String invalidDirectory = "data/COWABUNGA";

    @Test
    public void save_validDirectory_success() {
        commandBox.runCommand("save " + validDirectory);
        assertResultMessage(String.format(SaveCommand.MESSAGE_SAVE_TASK_SUCCESS, validDirectory));
    }

    @Test
    public void save_invalidFormat_failure() {
        commandBox.runCommand("save");
        assertResultMessage(String.format(MESSAGE_INVALID_COMMAND_FORMAT, SaveCommand.MESSAGE_USAGE));
    }

    @Test
    public void save_invalidDirectory_failure() {
        commandBox.runCommand("save " + invalidDirectory);
        assertResultMessage(String.format(SaveCommand.MESSAGE_DIRECTORY_PATH_INVALID));
    }

}

@@ -23,78 +23,8 @@
 ort 
-org.junit.Test;%0A%0Aimport seedu.ezdo.logic.commands.SaveCommand;%0Aimport 
 stat
@@ -89,16 +89,87 @@
 D_FORMAT
+;%0A%0Aimport org.junit.Test;%0A%0Aimport seedu.ezdo.logic.commands.SaveCommand
 ;%0A%0Apubli

Reorder import