Project

General

Profile

Actions

Task #879

closed

HrEndContractProcessIntegrationTest consume ~5 minutes

Added by Ondřej Kopr about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Test
Target version:
Start date:
12/19/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

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

    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);
        });
    }

Files

tests.png (35 KB) tests.png Ondřej Kopr, 12/19/2017 10:51 AM
new.png (26.4 KB) new.png Ondřej Kopr, 12/19/2017 11:33 AM
Actions

Also available in: Atom PDF