package seedu.ezdo.model.util;

import seedu.ezdo.commons.exceptions.IllegalValueException;
import seedu.ezdo.model.EzDo;
import seedu.ezdo.model.ReadOnlyEzDo;
import seedu.ezdo.model.tag.UniqueTagList;
import seedu.ezdo.model.todo.DueDate;
import seedu.ezdo.model.todo.Name;
import seedu.ezdo.model.todo.Priority;
import seedu.ezdo.model.todo.StartDate;
import seedu.ezdo.model.todo.Task;
import seedu.ezdo.model.todo.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new Name("Buy one cherry"), new Priority("1"),
                    new StartDate("12/12/2017"),
                    new DueDate("13/08/2017"),
                    new UniqueTagList("groceries")),
                new Task(new Name("Study for two midterms"), new Priority("2"),
                    new StartDate("12/12/2017"),
                    new DueDate("14/09/2017"),
                    new UniqueTagList("school", "exams")),
                new Task(new Name("Buy ps three"), new Priority("3"),
                    new StartDate("12/12/2017"),
                    new DueDate("15/10/2017"),
                    new UniqueTagList("personal")),
                new Task(new Name("Visit four neighbours"), new Priority("2"),
                    new StartDate("12/12/2017"),
                    new DueDate("16/11/2017"),
                    new UniqueTagList("personal")),
                new Task(new Name("Prepare for five finals"), new Priority("3"),
                    new StartDate("12/12/2017"),
                    new DueDate("17/12/2017"),
                    new UniqueTagList("school", "exams")),
                new Task(new Name("Prepare six presentations"), new Priority("3"),
                    new StartDate("12/12/2017"),
                    new DueDate("18/12/2017"),
                    new UniqueTagList("school", "exams"))
            };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyEzDo getSampleEzDo() {
        try {
            EzDo sampleEzDo = new EzDo();
            for (Task sampleTask : getSampleTasks()) {
                sampleEzDo.addTask(sampleTask);
            }
            return sampleEzDo;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -621,16 +621,22 @@
 e cherry
+ fruit
 %22), new 
@@ -646,24 +646,24 @@
 ority(%221%22),%0A
-
             
@@ -737,17 +737,17 @@
 e(%221
-3/08
+2/13
 /201
-7
+8
 %22),%0A
@@ -966,17 +966,17 @@
 e(%221
-4
+2
 /09/201
-7
+8
 %22),%0A
@@ -1191,17 +1191,17 @@
 e(%221
-5
+2
 /10/201
-7
+8
 %22),%0A
@@ -1418,17 +1418,17 @@
 e(%221
-6
+2
 /11/201
-7
+8
 %22),%0A
@@ -1647,17 +1647,17 @@
 e(%221
-7
+2
 /12/201
-7
+8
 %22),%0A
@@ -1885,17 +1885,17 @@
 e(%221
-8
+2
 /12/201
-7
+8
 %22),%0A

Update sample data