@Test public void formatExecuteWithFormat() throws Exception { Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2011-01-01 00:00:00"); String result = underTest.format(date, "yyyy"); assertEquals("2011", result); }
@Test public void testExecute() throws Exception { Date date = new Date(); assertNotEquals(date, underTest.modifyDate(date, "+1 day")); }