//@@author A0135769N
package guitests;

import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static seedu.tasklist.logic.commands.SetStorageCommand.MESSAGE_SUCCESS;
import seedu.tasklist.testutil.TestTask;
import seedu.tasklist.testutil.TestUtil;

public class SetStorageCommandTest extends TaskListGuiTest {
	@Test
	public void setStorage(){
		 TestTask[] currentList = td.getTypicalTasks();
		 
    	String testCase1 = "docs/tasklist.xml";
    	String testCase2 = "default";
    	assertStorageSuccess(testCase1, currentList);
    	assertStorageSuccess(testCase2, currentList);
    }
    
	  /**
     * Runs the setstorage command to move the file to the directory specified by the user (as a file path).
     * @param filePath e.g. to validate and move the file from the current position to the final position.
     * @param currentList A copy of the current list of tasks, to check for no loss of data while transferring.
     */
    private void assertStorageSuccess(String filePath, TestTask[] currentList){
    	if(filePath.equals("default")){
    		filePath = "data/tasklist.xml";
    	}
    	commandBox.runCommand("setstorage " + filePath);
    	assertResultMessage(String.format(MESSAGE_SUCCESS + filePath));
    	assertTrue(TestUtil.setFilePath(filePath));
    	
    }
}

@@ -326,15 +326,19 @@
 t %7B%0A
+//
 %09@Test%0A
+//
 %09pub
@@ -360,16 +360,18 @@
 rage()%7B%0A
+//
 %09%09 TestT
@@ -416,12 +416,16 @@
 ();%0A
+//
 %09%09 %0A
+//
     
@@ -461,24 +461,26 @@
 klist.xml%22;%0A
+//
     %09String 
@@ -502,16 +502,18 @@
 fault%22;%0A
+//
     %09ass
@@ -551,24 +551,26 @@
 rrentList);%0A
+//
     %09assertS
@@ -612,26 +612,34 @@
 t);%0A
+//
     %7D%0A
+//
     %0A
+//
 %09  /**%0A
+//
     
@@ -743,16 +743,18 @@
  path).%0A
+//
      * @
@@ -852,16 +852,18 @@
 sition.%0A
+//
      * @
@@ -970,16 +970,18 @@
 ng.%0A
+//
      */%0A
     
@@ -976,16 +976,18 @@
      */%0A
+//
     priv
@@ -1058,16 +1058,18 @@
 tList)%7B%0A
+//
     %09if(
@@ -1097,16 +1097,18 @@
 ult%22))%7B%0A
+//
     %09%09fi
@@ -1141,15 +1141,19 @@
 l%22;%0A
+//
     %09%7D%0A
+//
     
@@ -1202,16 +1202,18 @@
 ePath);%0A
+//
     %09ass
@@ -1269,24 +1269,26 @@
 filePath));%0A
+//
     %09assertT
@@ -1328,14 +1328,18 @@
 ));%0A
+//
     %09%0A
+//
     

fix tests