package seedu.address.testutil;

import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.Description;
import seedu.address.model.task.Email;
import seedu.address.model.task.Priority;
import seedu.address.model.task.ReadOnlyTask;

/**
 * A mutable Task object. For testing only.
 */
public class TestTask implements ReadOnlyTask {


    private Description description;
    private Priority priority;
    private Email date;

    private UniqueTagList tags;
    
    public TestTask() {
        tags = new UniqueTagList();
    }

    /**
     * Creates a copy of {@code TaskToCopy}.
     */
    public TestTask(TestTask TaskToCopy) {
        this.description = TaskToCopy.getDescription();
        this.priority = TaskToCopy.getPriority();
        this.date = TaskToCopy.getDate();
        this.tags = TaskToCopy.getTags();
    }

    public void setName(Description description) {
        this.description = description;
    }

    public void setEmail(Email date) {
        this.date = date;
    }

    public void setPhone(Priority priority) {
        this.priority = priority;
    }

    public void setTags(UniqueTagList tags) {
        this.tags = tags;
    }

    @Override
    public Description getDescription() {
        return description;
    }

    @Override
    public Priority getPriority() {
        return priority;
    }

    @Override
    public Email getDate() {
        return email;
    }

    @Override
    public UniqueTagList getTags() {
        return tags;
    }

    @Override
    public String toString() {
        return getAsText();
    }

    public String getAddCommand() {
        StringBuilder sb = new StringBuilder();
        sb.append("add " + this.getDescription().description + " ");
        sb.append("p/" + this.getPriority().value + " ");
        sb.append("e/" + this.getDate().value + " ");
        this.getTags().asObservableList().stream().forEach(s -> sb.append("t/" + s.tagName + " "));
        return sb.toString();
    }
}

@@ -1416,13 +1416,12 @@
 urn 
-email
+date
 ;%0A  

change email to date, but wrong object still being used in TestTask.java