Search in sources :

Example 1 with EmptyFilter

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));
}
Also used : EmptyFilter(eu.bcvsolutions.idm.core.api.dto.filter.EmptyFilter) IdmBasePermission(eu.bcvsolutions.idm.core.security.api.domain.IdmBasePermission) SysProvisioningBatchDto(eu.bcvsolutions.idm.acc.dto.SysProvisioningBatchDto) Test(org.junit.Test) AbstractIntegrationTest(eu.bcvsolutions.idm.test.api.AbstractIntegrationTest)

Aggregations

SysProvisioningBatchDto (eu.bcvsolutions.idm.acc.dto.SysProvisioningBatchDto)1 EmptyFilter (eu.bcvsolutions.idm.core.api.dto.filter.EmptyFilter)1 IdmBasePermission (eu.bcvsolutions.idm.core.security.api.domain.IdmBasePermission)1 AbstractIntegrationTest (eu.bcvsolutions.idm.test.api.AbstractIntegrationTest)1 Test (org.junit.Test)1