use of com.cronutils.model.field.expression.On in project cron-utils by jmrozanec.
the class CronMapperTest method testReturnOnZeroExpression.
@Test
public void testReturnOnZeroExpression() {
final Function<CronField, CronField> function = CronMapper.returnOnZeroExpression(testCronFieldName);
assertEquals(testCronFieldName, function.apply(mockCronField).getField());
final On result = (On) function.apply(mockCronField).getExpression();
assertEquals(0, (int) result.getTime().getValue());
}
Aggregations