package seedu.address.testutil;

import java.util.Optional;

import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.*;

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

    private Name name;
    private Location address;
    private Description description;
    private Optional<Time> time;
    private Period period;
    private UniqueTagList tags;

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

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

    public void setAddress(Location address) {
        this.address = address;
    }

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

    public void setTime(Optional<Time> time) {
        this.time = time;
    }

    public void setPeriod(Period period) {
        this.period = period;
    }

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

    @Override
    public Optional<Time> getTime() {
        return time;
    }

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

    @Override
    public Location getLocation() {
        return address;
    }

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

    @Override
    public Period getPeriod() {
        return period;
    }

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

    public String getAddCommand() {
        StringBuilder sb = new StringBuilder();
        sb.append("add " + this.getName().taskName + " ");
        sb.append("t;" + this.getTime().get().value + " ");
        sb.append("et;" + this.getPeriod().value + " ");
        sb.append("d;" + this.getDescription().value + " ");
        sb.append("a;" + this.getLocation().value + " ");

        this.getTags().getInternalList().stream().forEach(s -> sb.append("t/" + s.tagName + " "));
        return sb.toString();
    }
}

@@ -418,16 +418,49 @@
 st tags;
+%0A    private boolean isCompleted;
 %0A%0A    pu
@@ -1408,32 +1408,106 @@
 rn period;%0A    %7D
+%0A    %0A%09@Override%0A%09public boolean getCompleted() %7B%0A%09%09return isCompleted;%0A%09%7D
 %0A%0A    @Override%0A

Fix missing lines in testTask.java