@@ -0,0 +1,2372 @@
+package seedu.tasklist.model;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.Date;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport seedu.tasklist.commons.exceptions.IllegalValueException;%0A%0Aimport seedu.tasklist.model.tag.UniqueTagList;%0Aimport seedu.tasklist.model.task.Comment;%0Aimport seedu.tasklist.model.task.DeadlineTask;%0Aimport seedu.tasklist.model.task.EventTask;%0Aimport seedu.tasklist.model.task.FloatingTask;%0Aimport seedu.tasklist.model.task.Name;%0Aimport seedu.tasklist.model.task.Priority;%0Aimport seedu.tasklist.model.task.Status;%0Aimport seedu.tasklist.model.task.Task;%0A%0A%0Apublic class TaskTest %7B%0A    private Task task;%0A    private TaskTestHelper helper;%0A%0A    @Before%0A    public void initialize() %7B%0A        helper = new TaskTestHelper();%0A    %7D%0A%0A    @Test%0A    public void create_FloatingTask_returnsTrue() throws Exception %7B%0A        task = helper.createFloatingTask();%0A        assertEquals(task.getType(), FloatingTask.TYPE);%0A    %7D%0A%0A    @Test%0A    public void create_EventTask_returnsTrue() throws Exception %7B%0A        task = helper.createEventTask();%0A        assertEquals(task.getType(), EventTask.TYPE);%0A    %7D%0A%0A    @Test%0A    public void create_DeadlineTask_returnsTrue() throws Exception %7B%0A        task = helper.createDeadlineTask();%0A        assertEquals(task.getType(), DeadlineTask.TYPE);%0A    %7D%0A    %0A    %0A%0A    class TaskTestHelper %7B%0A%0A        /**%0A         * Creates floating task%0A         */%0A        public Task createFloatingTask() throws IllegalValueException %7B%0A            return new FloatingTask(new Name(%22testFloatingTask1%22), new Comment(%22test%22),%0A                                     new Priority(%22medium%22), new Status(), new UniqueTagList());%0A        %7D%0A%0A        /**%0A         * Creates an event task%0A         */%0A        public Task createEventTask() throws IllegalValueException %7B%0A            return new EventTask(new Name(%22testEventTask1%22), new Comment(%22test%22),%0A                                    new Priority(%22low%22), new Status(), new Date(), new Date(), new UniqueTagList());%0A        %7D%0A%0A        /**%0A         * Creates a deadline task%0A         */%0A        public Task createDeadlineTask() throws IllegalValueException %7B%0A            return new DeadlineTask(new Name(%22testDeadlineTask1%22), new Comment(%22test%22),%0A                                    new Priority(%22high%22), new Status(), new Date(), new UniqueTagList());%0A        %7D%0A    %7D%0A%7D%0A

Create TaskTesk.java to test for 3 types of task