package seedu.jobs.model.task;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;
import seedu.jobs.model.task.Time;

public class TimeTest {

    @Test
    public void isValidTime() {
        // invalid Time
        assertFalse(Time.isValidTime("")); // empty string
        assertFalse(Time.isValidTime(" ")); // spaces only
        assertFalse(Time.isValidTime("12/12/2016")); // incomplete time declaration
        assertFalse(Time.isValidTime("12/12/2016 12")); // incomplete time declaration
        assertFalse(Time.isValidTime("12/12/2016 12:")); // incomplete time declaration
        assertFalse(Time.isValidTime("9/12/1993 5:2")); //no preceding zero in the minute portion

        // valid Time
        assertTrue(Time.isValidTime("09/12/1993 15:00")); //preceding zero in the date
        assertTrue(Time.isValidTime("9/12/1993 05:00")); //no preceding zero in the date 
        assertTrue(Time.isValidTime("9/12/1993 5:00")); //no preceding zero in the hour

    }
}

@@ -738,16 +738,362 @@
 portion%0A
+        assertFalse(Time.isValidTime(%229/12/1993 05:00%22)); //no preceding zero in the day%0A        assertFalse(Time.isValidTime(%2209/9/1993 05:00%22)); //no preceding zero in the month%0A        assertFalse(Time.isValidTime(%2231/11/1993 05:00%22)); //non existent date%0A        assertFalse(Time.isValidTime(%2230/11/1993 25:00%22)); //non existent time%0A        
 %0A       
@@ -1257,100 +1257,8 @@
 ; //
-no preceding zero in the date %0A        assertTrue(Time.isValidTime(%229/12/1993 5:00%22)); //no 
 prec

Add test cases for TimeTest.java