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