package guitests;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.ocpsoft.prettytime.shade.edu.emory.mathcs.backport.java.util.Arrays;

import seedu.tache.model.TaskManager;
import seedu.tache.model.task.Task;
import seedu.tache.model.util.SampleDataUtil;
import seedu.tache.testutil.TestUtil;

public class SampleDataTest extends TaskManagerGuiTest {
    @Override
    protected TaskManager getInitialData() {
        // return null to force test app to load data from file only
        return null;
    }

    @Override
    protected String getDataFileLocation() {
        // return a non-existent file location to force test app to load sample data
        return TestUtil.getFilePathInSandboxFolder("SomeFileThatDoesNotExist1234567890.xml");
    }

    @Test
    public void taskManager_dataFileDoesNotExist_loadSampleData() throws Exception {
        Task[] expectedList = SampleDataUtil.getSampleTasks();
        Arrays.sort(expectedList, Task.taskDateComparator);
        assertTrue(taskListPanel.isListMatching(expectedList));
    }
}

@@ -24,266 +24,36 @@
 rt s
-tatic org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0Aimport org.ocpsoft.prettytime.shade.edu.emory.mathcs.backport.java.util.Arrays;%0A%0Aimport seedu.tache.model.TaskManager;%0Aimport seedu.tache.model.task.Task;%0Aimport seedu.tache.model.util.SampleDataUtil
+eedu.tache.model.TaskManager
 ;%0Aim
@@ -446,16 +446,16 @@
 le data%0A
+
         
@@ -549,296 +549,7 @@
    %7D
-%0A%0A    @Test%0A    public void taskManager_dataFileDoesNotExist_loadSampleData() throws Exception %7B%0A        Task%5B%5D expectedList = SampleDataUtil.getSampleTasks();%0A        Arrays.sort(expectedList, Task.taskDateComparator);%0A        assertTrue(taskListPanel.isListMatching(expectedList));%0A    %7D
 %0A%7D%0A

Fix Junit