package guitests;

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

import java.io.IOException;

import org.junit.Test;

import seedu.ezdo.logic.commands.SaveCommand;

public class SaveCommandTest extends EzDoGuiTest {

    private final String validDirectory = "data/test.xml";
    private final String inexistentDirectory = "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_inexistentDirectory_failure() {
        commandBox.runCommand("save " + inexistentDirectory);
        assertResultMessage(String.format(SaveCommand.MESSAGE_DIRECTORY_PATH_DOES_NOT_EXIST));
    }

}

@@ -96,37 +96,8 @@
 T;%0A%0A
-import java.io.IOException;%0A%0A
 impo
@@ -401,24 +401,26 @@
 s() %7B%0A      
+  
 commandBox.r
@@ -452,24 +452,26 @@
 Directory);%0A
+  
       assert

Remove unused imports Fix indentation