package seedu.address.model.task;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class DeadlineTest {

    @Test
    public void isValidDate() {
        // invalid deadlines


        // valid deadlines
        assertTrue(Deadline.isValidDeadline("11-12-2106")); // date
        assertTrue(Deadline.isValidDeadline("Tomorrow"));
        assertTrue(Deadline.isValidDeadline("9pm")); // two characters only
        assertTrue(Deadline.isValidDeadline("")); // empty string
        assertTrue(Deadline.isValidDeadline(" ")); // spaces only
    }
}

@@ -69,66 +69,317 @@
 sert
-True;%0A%0Aimport org.junit.Test;%0A%0Apublic class DeadlineTest %7B
+False;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport seedu.address.commons.exceptions.IllegalValueException;%0A%0Apublic class DeadlineTest %7B%0A%0A    @Rule%0A    public ExpectedException exception = ExpectedException.none();
 %0A%0A  
@@ -415,16 +415,45 @@
 idDate()
+ throws IllegalValueException
  %7B%0A     
@@ -476,16 +476,641 @@
 adlines%0A
+        exception.expect(AssertionError.class);%0A        new Deadline(null);%0A%0A        // test equals%0A        Deadline deadline1 = new Deadline(%22Tomorrow%22);%0A        Deadline deadline2 = new Deadline(%22Tomorrow%22);%0A        Deadline deadline3 = new Deadline(%22Today%22); // a different deadline%0A        assertTrue(%22Tomorrow%22.equals(deadline1.toString()));%0A        assertTrue(deadline1.equals(deadline2));%0A        assertTrue(deadline1.equals(deadline1));%0A        assertFalse(deadline1.equals(null));%0A        assertFalse(deadline1.equals(deadline3));%0A%0A        //hashCode%0A        assertTrue(deadline1.hashCode() == deadline2.hashCode());
 %0A%0A      

Update DeadlineTest class to increase coverage