package seedu.ezdo.model.task;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import seedu.ezdo.model.tag.UniqueTagList;
import seedu.ezdo.model.todo.DueDate;
import seedu.ezdo.model.todo.Name;
import seedu.ezdo.model.todo.Priority;
import seedu.ezdo.model.todo.Recur;
import seedu.ezdo.model.todo.StartDate;
import seedu.ezdo.model.todo.Task;

public class TaskTest {

    @Test
    public void hashCode_isEqual() throws Exception {
        Task task = new Task(new Name("lol"), new Priority("1"), new StartDate("today"), new DueDate("tomorrow"),
                new Recur(""), new UniqueTagList("jesus"));
        assertTrue(task.hashCode() == task.hashCode());
    }

}

@@ -686,10 +686,486 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void isEqual() throws Exception %7B%0A        Task task1 = new Task(new Name(%22Test 2%22), new Priority(%222%22), new StartDate(%22tomorrow 1pm%22), new DueDate(%22tomorrow 2pm%22),%0A                new Recur(%22%22), new UniqueTagList(%22yes%22));%0A        Task task2 = new Task(new Name(%22Test 2%22), new Priority(%222%22), new StartDate(%22tomorrow 1pm%22), new DueDate(%22tomorrow 2pm%22),%0A                new Recur(%22%22), new UniqueTagList(%22yes%22));%0A        assertTrue(task1.equals(task2));%0A    %7D%0A
 %7D%0A

Update test case for TaskTest