Project

General

Profile

Task #879

Updated by Ondřej Kopr over 6 years ago

In HrEndContractProcessIntegrationTest tests is assigned all created roles in all test. This test consume ~5 2 minutes during testing. Please fix this behavior. 

 !tests.png! 

 <pre> 
	 private void addRolesToContract(IdmIdentityContractDto contract) { 
		 roleService.find(null).forEach(role -> { 
			 IdmIdentityRoleDto d = new IdmIdentityRoleDto(); 
			 d.setRole(role.getId()); 
			 d.setAutomaticRole(false); 
			 d.setIdentityContract(contract.getId()); 
			 identityRoleService.save(d); 
		 }); 
	 } 
 </pre>

Back