Commit 2361060e authored by Jyrgen Hannus's avatar Jyrgen Hannus
Browse files

TEIS-1268: updated integration test

parent dfa19306
......@@ -221,7 +221,11 @@ class OfficialsListenerPrivilegesTest extends OfficialsAppTestBase {
private void verifyCreateOfficialUserIsAllowed(RequestMetaDTO requestMetaDTO) {
CreateOfficialUserRequest request = new CreateOfficialUserRequest();
request.setPayload(new CreateOfficialUserRequest.Parameters(new OfficialUserDto()), requestMetaDTO);
OfficialUserDto officialUser = new OfficialUserDto();
officialUser.setFirstName("tom");
officialUser.setLastName("crank");
officialUser.setIdCode("38912035472");
request.setPayload(new CreateOfficialUserRequest.Parameters(officialUser), requestMetaDTO);
CreateOfficialUserResponse response = listener.create(request);
verify(composeService, times(1)).composeEntity(any(OfficialUserDto.class));
verify(composeService, times(1)).composeDtoWithGroupManager(any());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment