@@ -0,0 +1,1300 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.io.File;%0A%0Aimport org.junit.Test;%0A%0A//@@author A0164440M%0Apublic class PathCommandTest extends TaskBookGuiTest %7B%0A%0A    @Test%0A    public void saveToCorrectPath() %7B%0A        assertCorrectPathResult(%22path%22, %22a.xml%22);%0A        assertCorrectPathResult(%22path%22, %22a.txt%22);%0A    %7D%0A%0A    @Test%0A    public void saveToInvalidPath() %7B%0A        assertWrongPathResult(%22path%22, %22data/C:%22);%0A%0A        commandBox.runCommand(%22path%22);%0A        assertResultMessage(%22Invalid command format! %5Cnpath: Change save path. %22%0A                + %22Parameters: path %5Bfilename%5D %5CnExample: path taskbook.xml%22);%0A    %7D%0A%0A    private void assertCorrectPathResult(String command, String path) %7B%0A        commandBox.runCommand(command + %22 %22 + path);%0A        assertTrue(fileExist(path));%0A        assertResultMessage(%22Save path has been successfully updated %5Cn%22);%0A    %7D%0A%0A    private void assertWrongPathResult(String command, String path) %7B%0A        commandBox.runCommand(command + %22 %22 + path);%0A        assertTrue(!fileExist(path));%0A        assertResultMessage(%22This path is invalid%22);%0A    %7D%0A%0A    private boolean fileExist(String path) %7B%0A        File f = new File(path);%0A        if (f.exists() && !f.isDirectory()) %7B%0A            return true;%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Add test case for path command