//@@author A0146738U

package seedu.bulletjournal.model.util;

import seedu.bulletjournal.commons.exceptions.IllegalValueException;
import seedu.bulletjournal.model.ReadOnlyTodoList;
import seedu.bulletjournal.model.TodoList;
import seedu.bulletjournal.model.tag.UniqueTagList;
import seedu.bulletjournal.model.task.BeginDate;
import seedu.bulletjournal.model.task.DueDate;
import seedu.bulletjournal.model.task.Status;
import seedu.bulletjournal.model.task.Task;
import seedu.bulletjournal.model.task.TaskName;
import seedu.bulletjournal.model.task.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new TaskName("Assignment for CS"), new DueDate("210317"), new Status("undone"),
                            new BeginDate("210217"), new UniqueTagList("friends")),
                new Task(new TaskName("Burn homework"), new DueDate("210317"), new Status("undone"),
                            new BeginDate("210217"), new UniqueTagList("colleagues", "friends")),
                new Task(new TaskName("Carry burdens"), new DueDate("210317"), new Status("undone"),
                            new BeginDate("210217"), new UniqueTagList("neighbours")),
                new Task(new TaskName("Destroy homework"), new DueDate("210317"), new Status("undone"),
                            new BeginDate("210217"), new UniqueTagList("family")),
                new Task(new TaskName("Irrigate fields"), new DueDate("210317"), new Status("undone"),
                            new BeginDate("210217"), new UniqueTagList("classmates")),
                new Task(new TaskName("Return bicycle"), new DueDate("210317"), new Status("undone"),
                            new BeginDate("210217"), new UniqueTagList("colleagues")) };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyTodoList getSampleTodoList() {
        try {
            TodoList sampleAB = new TodoList();
            for (Task sampleTask : getSampleTasks()) {
                sampleAB.addTask(sampleTask);
            }
            return sampleAB;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -768,38 +768,40 @@
 ), new DueDate(%22
-210317
+14th May
 %22), new Status(%22
@@ -845,38 +845,45 @@
  new BeginDate(%22
-210217
+long long ago
 %22), new UniqueTa
@@ -889,23 +889,24 @@
 agList(%22
-friends
+homework
 %22)),%0A   
@@ -945,12 +945,13 @@
 me(%22
-Burn
+Other
  hom
@@ -964,38 +964,39 @@
 ), new DueDate(%22
-210317
+Forever
 %22), new Status(%22
@@ -1040,38 +1040,35 @@
  new BeginDate(%22
-210217
+tmr
 %22), new UniqueTa
@@ -1078,29 +1078,19 @@
 st(%22
-colleagues%22, %22friends
+unimportant
 %22)),
@@ -1133,21 +1133,19 @@
 me(%22
-Carry burdens
+Take shower
 %22), 
@@ -1149,38 +1149,39 @@
 ), new DueDate(%22
-210317
+tonight
 %22), new Status(%22
@@ -1225,38 +1225,39 @@
  new BeginDate(%22
-210217
+evening
 %22), new UniqueTa
@@ -1267,18 +1267,15 @@
 st(%22
-neighbours
+routine
 %22)),
@@ -1318,24 +1318,23 @@
 me(%22
-Destroy homework
+Play basketball
 %22), 
@@ -1338,38 +1338,36 @@
 ), new DueDate(%22
-210317
+soon
 %22), new Status(%22
@@ -1411,38 +1411,36 @@
  new BeginDate(%22
-210217
+soon
 %22), new UniqueTa
@@ -1450,14 +1450,12 @@
 st(%22
-family
+love
 %22)),
@@ -1498,22 +1498,24 @@
 me(%22
-Irrigate field
+Change test case
 s%22),
@@ -1520,38 +1520,37 @@
 ), new DueDate(%22
-210317
+today
 %22), new Status(%22
@@ -1541,34 +1541,32 @@
 %22), new Status(%22
-un
 done%22),%0A        
@@ -1592,38 +1592,41 @@
  new BeginDate(%22
-210217
+yesterday
 %22), new UniqueTa
@@ -1636,18 +1636,16 @@
 st(%22
-classmates
+homework
 %22)),
@@ -1685,21 +1685,19 @@
 kName(%22R
-eturn
+ide
  bicycle
@@ -1717,14 +1717,17 @@
 te(%22
-210317
+every day
 %22), 
@@ -1795,14 +1795,15 @@
 te(%22
-210217
+anytime
 %22), 
@@ -1825,18 +1825,16 @@
 st(%22
-colleagues
+exercise
 %22)) 

Change sample data