use of com.artezio.arttime.datamodel.WorkdaysCalendar in project ART-TIME by Artezio.
the class EmployeesBeanTest method testFilterByCalendar_valueNull_filterContainsNull.
@Test
public void testFilterByCalendar_valueNull_filterContainsNull() throws NoSuchFieldException {
WorkdaysCalendar calendar = new WorkdaysCalendar("calendar1");
setField(calendar, "id", 1L);
boolean actual = bean.filterByCalendar(null, Arrays.asList(new Object(), null), null);
assertTrue(actual);
}
use of com.artezio.arttime.datamodel.WorkdaysCalendar in project ART-TIME by Artezio.
the class EmployeesBeanTest method testFilterByCalendar_valueNull_filterNotContainsNull.
@Test
public void testFilterByCalendar_valueNull_filterNotContainsNull() throws NoSuchFieldException {
WorkdaysCalendar calendar = new WorkdaysCalendar("calendar1");
setField(calendar, "id", 1L);
boolean actual = bean.filterByCalendar(null, Arrays.asList(new Object()), null);
assertFalse(actual);
}
use of com.artezio.arttime.datamodel.WorkdaysCalendar in project ART-TIME by Artezio.
the class EmployeesBeanTest method testFilterByCalendar_valueNull_filterNull.
@Test
public void testFilterByCalendar_valueNull_filterNull() throws NoSuchFieldException {
WorkdaysCalendar calendar = new WorkdaysCalendar("calendar1");
setField(calendar, "id", 1L);
boolean actual = bean.filterByCalendar(null, null, null);
assertTrue(actual);
}
use of com.artezio.arttime.datamodel.WorkdaysCalendar in project ART-TIME by Artezio.
the class EmployeesBeanTest method testFilterByCalendar_FilterIsNull.
@Test
public void testFilterByCalendar_FilterIsNull() throws NoSuchFieldException {
WorkdaysCalendar calendar = new WorkdaysCalendar("calendar1");
setField(calendar, "id", 1L);
boolean actual = bean.filterByCalendar(calendar, null, null);
assertTrue(actual);
}
use of com.artezio.arttime.datamodel.WorkdaysCalendar in project ART-TIME by Artezio.
the class EmployeesBeanTest method testFilterByCalendar_NonNullValueOutOfFilter.
@Test
public void testFilterByCalendar_NonNullValueOutOfFilter() throws NoSuchFieldException {
WorkdaysCalendar calendar1 = new WorkdaysCalendar("calendar1");
setField(calendar1, "id", 1L);
WorkdaysCalendar calendar2 = new WorkdaysCalendar("calendar2");
setField(calendar2, "id", 2L);
WorkdaysCalendar calendar3 = new WorkdaysCalendar("calendar3");
setField(calendar3, "id", 3L);
List<WorkdaysCalendar> filter = Arrays.asList(calendar1, calendar2);
boolean actual = bean.filterByCalendar(calendar3, filter, null);
assertFalse(actual);
}
Aggregations