package seedu.address.testutil;

import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.Deadline;
import seedu.address.model.task.Description;
import seedu.address.model.task.IdentificationNumber;
import seedu.address.model.task.Name;
import seedu.address.model.task.ReadOnlyTask;

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

    private Name name;
    private Deadline deadline;
    private Description description;
    private IdentificationNumber id;
    private UniqueTagList tags;

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

    /**
     * Creates a copy of {@code taskToCopy}.
     */
    public TestTask(TestTask taskToCopy) {
        this.name = taskToCopy.getName();
        this.deadline = taskToCopy.getDeadline();
        this.description = taskToCopy.getDescription();
        this.id = taskToCopy.getID();
        this.tags = taskToCopy.getTags();
    }

    public void setName(Name name) {
        this.name = name;
    }

    public void setDeadline(Deadline deadline) {
        this.deadline = deadline;
    }

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

    public void setID(IdentificationNumber id) {
        this.id = id;
    }

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

    @Override
    public Name getName() {
        return name;
    }

    @Override
    public Deadline getDeadline() {
        return deadline;
    }

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

    @Override
    public IdentificationNumber getID() {
        return id;
    }

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

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

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

@@ -2030,17 +2030,18 @@
 append(%22
-a
+dl
 /%22 + thi
@@ -2099,17 +2099,18 @@
 append(%22
-p
+ds
 /%22 + thi
@@ -2167,17 +2167,18 @@
 append(%22
-e
+id
 /%22 + thi

Modify TestTask class