package guitests;

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

import org.junit.Test;

import seedu.ezdo.logic.commands.SaveCommand;

public class SaveCommandTest extends EzDoGuiTest {

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

}

@@ -92,16 +92,45 @@
 ORMAT;%0A%0A
+import java.io.IOException;%0A%0A
 import o
@@ -144,16 +144,16 @@
 t.Test;%0A
-
 %0Aimport 
@@ -292,16 +292,24 @@
 = %22data/
+test.xml
 %22;%0A    p
@@ -369,13 +369,12 @@
 UNGA
+/
 %22;%0A
-/*
 %0A   
@@ -424,25 +424,24 @@
 success() %7B%0A
- 
       comman
@@ -479,24 +479,24 @@
 Directory);%0A
+
       assert
@@ -590,11 +590,9 @@
   %7D%0A
-*/
 %0A
+
     
@@ -826,21 +826,24 @@
  save_in
-valid
+existent
 Director

Update SaveCommandTest