/** * Test method for {@link Main.Date#addHours(int)}. * * @throws ParseException */ @Test public void testAddHours() throws ParseException { d.addHours(2); assertEquals(d.getHour(), 10); }
/** * Test method for {@link Main.Date#getHour()}. * * @throws ParseException */ @Test public void testGetHour() throws ParseException { assertEquals(d.getHour(), 8); }
/** * Test method for {@link Main.Date#setHour(int)}. * * @throws ParseException */ @Test public void testSetHour() throws ParseException { d.setHour(0); ; assertEquals(d.getHour(), 0); }