package seedu.address.testutil;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.TaskManager;
import seedu.address.model.task.Task;
import seedu.address.model.task.UniqueTaskList;

/**
 *
 */
public class TypicalTestTasks {

    public TestTask gym, cs2103, study;
    public TestTask birthday;
    public TestTask assignment;

    public TypicalTestTasks() {
        try {
            gym = new TaskBuilder().withName("gym").withDate("20/12").withTime("20:00").withDescription("50min workout").
                    withTag("personal").withVenue("gym").withPriority("2").withFavorite(true).build();
            cs2103 = new TaskBuilder().withName("cs2103").withDate("").withTime("16:00").withDescription("").
                    withTag("School").withVenue("").withPriority("").withFavorite(true).build();
            study = new TaskBuilder().withName("study").withDate("").withTime("").withDescription("").
                    withTag("personal").withVenue("").withPriority("").withFavorite(true).build();

        } catch (IllegalValueException e) {
            e.printStackTrace();
            assert false : "not possible";
        }
    }

    public static void loadTaskManagerWithSampleData(TaskManager ab) {
        for (TestTask task : new TypicalTestTasks().getTypicalTasks()) {
            try {
                ab.addTask(new Task(task));
            } catch (UniqueTaskList.DuplicateTaskException e) {
                assert false : "not possible";
            }
        }
    }

    public TestTask[] getTypicalTasks() {
        return new TestTask[]{gym, cs2103, study};
    }

    public TaskManager getTypicalTaskManager() {
        TaskManager ab = new TaskManager();
        loadTaskManagerWithSampleData(ab);
        return ab;
    }
}

@@ -221,17 +221,39 @@
 ;%0A%0A/
-**%0A *%0A */
+/@@author Matilda_yxx A0147996E
 %0Apub
@@ -281,17 +281,16 @@
 Tasks %7B%0A
-%0A
     publ
@@ -323,70 +323,54 @@
 tudy
-;%0A    public TestTask birthday;%0A    public TestTask assignment
+, laundry, birthday, assignment, date, meeting
 ;%0A%0A 
@@ -778,17 +778,17 @@
 ithTag(%22
-S
+s
 chool%22).
@@ -807,32 +807,33 @@
 ).withPriority(%22
+1
 %22).withFavorite(
@@ -983,66 +983,1171 @@
 ag(%22
-personal%22).withVenue(%22%22).withPriority(%22%22).withFavorite(tru
+%22).withVenue(%22Central lib%22).withPriority(%22%22).withFavorite(false).build();%0A            laundry = new TaskBuilder().withName(%22laundry%22).withDate(%22%22).withTime(%22%22).withDescription(%22Weekly task%22).%0A                    withTag(%22personal%22).withVenue(%22%22).withPriority(%22%22).withFavorite(false).build();%0A            birthday = new TaskBuilder().withName(%22birthday%22).withDate(%2204/09%22).withTime(%2214:00%22).withDescription(%22%22).%0A                    withTag(%22%22).withVenue(%22%22).withPriority(%223%22).withFavorite(true).build();%0A            assignment = new TaskBuilder().withName(%22assignment%22).withDate(%22%22).withTime(%22%22).withDescription(%22%22).%0A                    withTag(%22study%22).withVenue(%22Utown%22).withPriority(%222%22).withFavorite(false).build();%0A            date  = new TaskBuilder().withName(%22date%22).withDate(%2214/02%22).withTime(%2212:00%22).withDescription(%22Most important day%22).%0A                    withTag(%22personal%22).withVenue(%22Gardens by the bay%22).withPriority(%223%22).withFavorite(true).build();%0A            meeting = new TaskBuilder().withName(%22meeting%22).withDate(%22%22).withTime(%22%22).withDescription(%22%22).%0A                    withTag(%22school%22).withVenue(%22PGP%22).withPriority(%22%22).withFavorite(fals
 e).b
@@ -2357,18 +2357,18 @@
 Manager 
-ab
+tm
 ) %7B%0A    
@@ -2470,18 +2470,18 @@
         
-ab
+tm
 .addTask
@@ -2730,16 +2730,35 @@
 3, study
+, laundry, birthday
 %7D;%0A    %7D
@@ -2828,18 +2828,18 @@
 Manager 
-ab
+tm
  = new T
@@ -2890,18 +2890,18 @@
 pleData(
-ab
+tm
 );%0A     
@@ -2914,10 +2914,10 @@
 urn 
-ab
+tm
 ;%0A  

Add typical test tasks