示例#1
0
 /**
  * Test method for {@link Main.Date#getYear()}.
  *
  * @throws ParseException
  */
 @Test
 public void testGetYear() throws ParseException {
   assertEquals(d.getYear(), 2015);
 }
示例#2
0
 /**
  * Test method for {@link Main.Date#setYear(int)}.
  *
  * @throws ParseException
  */
 @Test
 public void testSetYear() throws ParseException {
   d.setYear(2016);
   ;
   assertEquals(d.getYear(), 2016);
 }