use of io.atlasmap.v2.AddDays in project atlasmap by atlasmap.
the class DateFieldActionsTest method testAddDays.
@Test
public void testAddDays() {
AddDays action = new AddDays();
action.setDays(2);
assertNull(DateFieldActions.addDays(action, null));
ZonedDateTime origDate = ZonedDateTime.now();
ZonedDateTime laterDate = origDate.plusDays(2);
assertEquals(laterDate, DateFieldActions.addDays(action, origDate));
}
Aggregations