package seedu.address.testutil;

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

/**
 *
 */
public class TypicalTestTasks {

    public TestTask alice, benson, carl, daniel, elle, fiona, george, hoon, ida;

    public TypicalTestTasks() {
        try {
            alice = new TaskBuilder().withDescription("Alice Pauline's big task")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2100")
                    .withPriority("3")
                    .withTags("friends").build();
            benson = new TaskBuilder().withDescription("Benson Meier's big task")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/12/2110")
                    .withPriority("2")
                    .withTags("owesMoney", "friends").build();
            carl = new TaskBuilder().withDescription("Carl Kurz's big task")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/12/2110")
                    .withPriority("2").build();
            daniel = new TaskBuilder().withDescription("Daniel Meier's big task")
                    .withStartDate("01/02/1017")
                    .withEndDate("02/03/2100")
                    .withPriority("3").build();
            elle = new TaskBuilder().withDescription("Elle Meyer's big task")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2110")
                    .withPriority("1").build();
            fiona = new TaskBuilder().withDescription("Fiona Kunz's big task")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2100")
                    .withPriority("1").build();
            george = new TaskBuilder().withDescription("George Best's big task")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2100")
                    .withPriority("3").build();
        } catch (IllegalValueException e) {
            e.printStackTrace();
            assert false : "not possible";
        }
    }

    public static void loadAddressBookWithSampleData(TaskList 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[]{alice, benson, carl, daniel, elle, fiona, george};
    }

    public TaskList getTypicalTaskList() {
        TaskList ab = new TaskList();
        loadAddressBookWithSampleData(ab);
        return ab;
    }
}

@@ -440,16 +440,29 @@
 iption(%22
+Say hello to 
 Alice Pa
@@ -466,27 +466,16 @@
  Pauline
-'s big task
 %22)%0A     
@@ -710,16 +710,31 @@
 iption(%22
+Say goodbye to 
 Benson M
@@ -733,35 +733,24 @@
 Benson Meier
-'s big task
 %22)%0A         
@@ -996,28 +996,27 @@
 on(%22
-Carl Kurz's big task
+Say hi to Carl Kurz
 %22)%0A 
@@ -1214,16 +1214,32 @@
 iption(%22
+Say farewell to 
 Daniel M
@@ -1242,27 +1242,16 @@
 el Meier
-'s big task
 %22)%0A     
@@ -1447,29 +1447,31 @@
 on(%22
-Elle Meyer's big task
+Say howdy to Elle Meyer
 %22)%0A 
@@ -1672,29 +1672,33 @@
 on(%22
-Fiona Kunz's big task
+Say so long to Fiona Kunz
 %22)%0A 
@@ -1896,16 +1896,33 @@
 iption(%22
+Say greetings to 
 George B
@@ -1928,19 +1928,8 @@
 Best
-'s big task
 %22)%0A 

remove apostrophe from task descriptions in TypicalTestTasks.java