use of eu.bcvsolutions.idm.core.api.dto.filter.EmptyFilter in project CzechIdMng by bcvsolutions.
the class DefaultSysProvisioningBatchServiceTest method emptyFilterTest.
@Test
public void emptyFilterTest() {
IdmBasePermission permission = IdmBasePermission.ADMIN;
SysProvisioningBatchDto provisioningBatch = new SysProvisioningBatchDto();
provisioningBatch.setId(UUID.randomUUID());
batchService.save(provisioningBatch);
EmptyFilter filter = new EmptyFilter();
Page<SysProvisioningBatchDto> result = batchService.find(filter, null, permission);
assertTrue(result.getContent().contains(provisioningBatch));
}
Aggregations