package seedu.jimi.testutil;

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

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

    private Name name;
    private UniqueTagList tags;

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

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

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


    @Override
    public UniqueTagList getTags() {
        return tags;
    }
    
    public void setTags(UniqueTagList tags) {
        this.tags = tags;
    }

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

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

    @Override
    public boolean isCompleted() {
        return false;
    }

    @Override
    public String getAsText() {
        final StringBuilder builder = new StringBuilder();
        builder.append(getName())
               .append(" Tags: ");
        getTags().forEach(builder::append);
        return builder.toString();
    }

    @Override
    public boolean isSameStateAs(ReadOnlyTask other) {
        return other == this // short circuit if same object
                || (other instanceof TestFloatingTask // instanceof handles nulls
                && (other).getName().equals(this.getName()) // state checks here onwards
                && (other).isCompleted() == this.isCompleted()
                );

    }
}

@@ -271,16 +271,49 @@
 st tags;
+%0A    private boolean isCompleted;
 %0A%0A    pu
@@ -1049,32 +1049,135 @@
 tring();%0A    %7D%0A%0A
+    public void setCompleted(boolean isCompleted) %7B%0A        this.isCompleted = isCompleted;%0A    %7D%0A    %0A
     @Override%0A  

Add isCompleted mem var to TestFloatingTask for testing