package seedu.address.testutil;

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

/**
 * A utility class to help with building TaskList objects.
 * Example usage: <br>
 *     {@code TaskList ab = new TaskListBuilder().withPerson("John", "Doe").withTag("Friend").build();}
 */
public class TaskListBuilder {

    private TaskList taskList;

    public TaskListBuilder(TaskList taskList) {
        this.taskList = taskList;
    }

    public TaskListBuilder withPerson(Task task) throws UniqueTaskList.DuplicateTaskException {
        taskList.addTask(task);
        return this;
    }

    public TaskListBuilder withTag(String tagName) throws IllegalValueException {
        taskList.addTag(new Tag(tagName));
        return this;
    }

    public TaskList build() {
        return taskList;
    }
}

@@ -7,23 +7,20 @@
 e seedu.
-address
+task
 .testuti
@@ -36,23 +36,20 @@
 t seedu.
-address
+task
 .commons
@@ -92,31 +92,28 @@
 mport seedu.
-address
+task
 .model.TaskL
@@ -122,39 +122,36 @@
 t;%0Aimport seedu.
-address
+task
 .model.tag.Tag;%0A
@@ -155,39 +155,36 @@
 g;%0Aimport seedu.
-address
+task
 .model.task.Task
@@ -202,15 +202,12 @@
 edu.
-address
+task
 .mod
@@ -293,19 +293,16 @@
 objects.
-%0A *
  Example
@@ -316,20 +316,16 @@
  %3Cbr%3E%0A *
-    
  %7B@code 

fix imports in TaskListBuilder.java