use of eu.bcvsolutions.idm.vs.dto.VsSystemDto in project CzechIdMng by bcvsolutions.
the class VsSystemServiceTest method checkImplementersTest.
@Test
public void checkImplementersTest() {
String userOneName = "vsUserOne";
String roleOneName = "vsRoleOne";
IdmIdentityDto userOne = helper.createIdentity(userOneName);
IdmRoleDto roleOne = helper.createRole(roleOneName);
VsSystemDto config = new VsSystemDto();
config.setName(VS_SYSTEM);
config.setImplementers(ImmutableList.of(userOne.getId()));
config.setImplementerRoles(ImmutableList.of(roleOne.getId()));
SysSystemDto system = helper.createVirtualSystem(config);
Assert.assertNotNull(system);
List<IdmIdentityDto> implementes = systemImplementersService.findRequestImplementers(system.getId());
Assert.assertEquals(1, implementes.size());
Assert.assertEquals(userOneName, implementes.get(0).getUsername());
}
Aggregations