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