use of com.cronutils.mapper.WeekDay in project cron-utils by jmrozanec.
the class FieldValueGeneratorFactoryTest method testCreateDayOfWeekValueGeneratorInstanceAnd.
@Test
public void testCreateDayOfWeekValueGeneratorInstanceAnd() {
when(mockCronField.getField()).thenReturn(CronFieldName.DAY_OF_WEEK);
when(mockCronField.getExpression()).thenReturn(mock(And.class));
assertEquals(AndDayOfWeekValueGenerator.class, FieldValueGeneratorFactory.createDayOfWeekValueGeneratorInstance(mockCronField, 2015, 1, new WeekDay(1, false)).getClass());
}
use of com.cronutils.mapper.WeekDay in project cron-utils by jmrozanec.
the class FieldValueGeneratorFactoryTest method testCreateDayOfWeekValueGeneratorInstance.
@Test
public void testCreateDayOfWeekValueGeneratorInstance() {
when(mockCronField.getField()).thenReturn(CronFieldName.DAY_OF_WEEK);
when(mockCronField.getExpression()).thenReturn(mock(On.class));
assertEquals(OnDayOfWeekValueGenerator.class, FieldValueGeneratorFactory.createDayOfWeekValueGeneratorInstance(mockCronField, 2015, 1, new WeekDay(1, false)).getClass());
}
Aggregations