package tars.testutil;

import tars.commons.exceptions.IllegalValueException;
import tars.model.task.*;
import tars.model.tag.Tag;

/**
 *
 */
public class TaskBuilder {

    private TestTask task;

    public TaskBuilder() {
        this.task = new TestTask();
    }

    public TaskBuilder withName(String name) throws IllegalValueException {
        this.task.setName(new Name(name));
        return this;
    }

    public TaskBuilder withTags(String ... tags) throws IllegalValueException {
        for (String tag: tags) {
            task.getTags().add(new Tag(tag));
        }
        return this;
    }

    public TaskBuilder withDateTime(String dateTime, String dateTime2) throws IllegalValueException {
        this.task.setDateTime(new DateTime(dateTime, dateTime2));
        return this;
    }

    public TaskBuilder withPriority(String priority) throws IllegalValueException {
        this.task.setPriority(new Priority(priority));
        return this;
    }

    public TestTask build() {
        return this.task;
    }

	public TaskBuilder withStatus() {
		Status done = new Status(true);
		this.task.setStatus(done);
		return this;
	}

}

@@ -657,16 +657,17 @@
 dateTime
+1
 , String
@@ -760,16 +760,17 @@
 dateTime
+1
 , dateTi

Change method parameter name