package seedu.tasklist.testutil;

import seedu.tasklist.model.tag.UniqueTagList;
import seedu.tasklist.model.task.Comment;
import seedu.tasklist.model.task.Name;
import seedu.tasklist.model.task.ReadOnlyTask;

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

    private Name name;
    private Comment comment;
    private UniqueTagList tags;

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

    /**
     * Creates a copy of {@code taskToCopy}.
     */
    public TestTask(TestTask taskToCopy) {
        this.name = taskToCopy.getName();
        this.comment = taskToCopy.getComment();
        this.tags = taskToCopy.getTags();
    }

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

    public void setComment(Comment comment) {
        this.comment = comment;
    }


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

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


    @Override
    public Comment getComment() {
        return comment;
    }

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

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

    public String getAddCommand() {
        StringBuilder sb = new StringBuilder();
        sb.append("add " + this.getName().fullName + " ");
        sb.append("c/" + this.getComment().value + " ");
        this.getTags().asObservableList().stream().forEach(s -> sb.append("t/" + s.tagName + " "));
        return sb.toString();
    }
}

@@ -188,28 +188,112 @@
 el.task.
-ReadOnlyTask
+Priority;%0Aimport seedu.tasklist.model.task.ReadOnlyTask;%0Aimport seedu.tasklist.model.task.Status
 ;%0A%0A/**%0A 
@@ -436,24 +436,82 @@
 nt comment;%0A
+    private Priority priority;%0A    private Status status;%0A
     private 
@@ -740,24 +740,24 @@
 .getName();%0A
-
         this
@@ -788,24 +788,120 @@
 tComment();%0A
+        this.priority = taskToCopy.getPriority();%0A        this.status = taskToCopy.getStatus();%0A
         this
@@ -1816,11 +1816,169 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public Priority getPriority() %7B%0A        return priority;%0A    %7D%0A%0A    @Override%0A    public Status getStatus() %7B%0A        return status;%0A    %7D
 %0A%7D%0A

Update TestTask.java