package guitests;

import static org.junit.Assert.*;

import org.junit.Test;

public class SaveCommandTest extends TaskListGuiTest {

    

}

@@ -47,9 +47,18 @@
 ert.
-*
+assertTrue
 ;%0A%0Ai
@@ -84,68 +84,1080 @@
 t;%0A%0A
-public class SaveCommandTest extends TaskListGuiTest %7B%0A%0A    
+import seedu.tasklist.commons.core.Messages;%0Aimport seedu.tasklist.logic.commands.SaveCommand;%0Aimport seedu.tasklist.testutil.TestUtil;%0A%0Apublic class SaveCommandTest extends TaskListGuiTest %7B%0A    private static String newFilePath = TestUtil.getFilePathInSandboxFolder(%22sampleData.xml%22);%0A%0A    @Test%0A    public void save_invalidCommand_errorMessageShown() %7B%0A        String command = %22saved testFile.xml%22;%0A        commandBox.runCommand(command);%0A        assertResultMessage(Messages.MESSAGE_UNKNOWN_COMMAND);%0A    %7D%0A%0A    @Test%0A    public void save_invalidExtension_errorMessageShown() %7B%0A        String command = %22save testFile%22;%0A        commandBox.runCommand(command);%0A        assertResultMessage(String.format(SaveCommand.MESSAGE_INVALID_PATH, %22testFile%22));%0A    %7D%0A%0A    @Test%0A    public void save_CorrectFilePath_success() %7B%0A        String command = %22save %22 + newFilePath;%0A        commandBox.runCommand(command);%0A        assertResultMessage(String.format(SaveCommand.MESSAGE_SUCCESS, newFilePath));%0A        assertTrue(taskListPanel.isListMatching(td.getTypicalTasks()));%0A    %7D
 %0A%0A%7D%0A

Update SaveCommandTest.java