@@ -0,0 +1,1818 @@
+package guitests;%0A%0Aimport java.util.Optional;%0Aimport java.util.logging.Logger;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport seedu.taskell.TestApp;%0Aimport seedu.taskell.commons.core.Config;%0Aimport seedu.taskell.commons.core.LogsCenter;%0Aimport seedu.taskell.commons.exceptions.DataConversionException;%0Aimport seedu.taskell.storage.JsonConfigStorage;%0A%0Apublic class SaveStorageLocationCommandTest extends TaskManagerGuiTest %7B%0A    %0A    private static final Logger logger = LogsCenter.getLogger(SaveStorageLocationCommandTest.class);%0A    %0A    private static final String CONFIG_JSON = %22config.json%22;%0A    private static final String CONFIG_LOCATION = %22./src/test/data/SaveLocationCommandTest%22;%0A    %0A    private static final String DEFAULT_SAVE_LOCATION = TestApp.SAVE_LOCATION_FOR_TESTING;%0A    %0A    @Test%0A    public void saveToValidFilePath() throws DataConversionException %7B%0A        commandBox.runCommand(%22save cat/%22);%0A        assertWriteToJsonSuccess();%0A    %7D%0A    %0A    @Test%0A    public void saveToInvalidFilePath() throws DataConversionException %7B%0A        JsonConfigStorage jsonConfigStorage = new JsonConfigStorage(CONFIG_LOCATION);%0A%0A        commandBox.runCommand(%22save E:%22);   %0A        %0A        Optional%3CConfig%3E newConfig = jsonConfigStorage.readConfig(CONFIG_JSON);%0A        %0A        String newFilePath = newConfig.get().getTaskManagerFilePath();%0A%0A        logger.severe(%22New path: %22 + newFilePath);%0A        %0A        assert(newFilePath.equals(DEFAULT_SAVE_LOCATION));%0A    %7D%0A    %0A    private void assertWriteToJsonSuccess() throws DataConversionException %7B%0A        JsonConfigStorage jsonConfigStorage = new JsonConfigStorage(CONFIG_LOCATION);%0A        Optional%3CConfig%3E config = jsonConfigStorage.readConfig(CONFIG_JSON);%0A        assert(config.isPresent());%0A    %7D %0A    %0A%0A%7D%0A

write SaveStorageLocationCommandTest