Commit 91a34cd3 authored by Raigo Ukkivi's avatar Raigo Ukkivi
Browse files

Merge remote-tracking branch 'origin/develop' into TEIS-365

parents 4a274961 65c31bd0
......@@ -51,16 +51,6 @@ class OfficialsGroupEmtakListenerTest extends OfficialsAppTestBase {
assertThat(response.getPayload().stream().allMatch(g -> g.getObjectStatus() == ObjectStatus.CURRENT)).isTrue();
}
@Test
void findEmtakCodes_user_must_have_privileges() {
requestMetaDTO.setPrivileges(Collections.emptyList());
OfficialsGroupEmtakCodesRequest request = composeGroupEmtakCodesRequest(CORRECT_GROUP_ID, "0113", STATUS_CURRENT);
OfficialsGroupEmtakCodesResponse response = listener.findOfficialsGroupEmtakCodes(request);
assertThat(response.getError().getCode()).isEqualTo(CommonErrorCode.FORBIDDEN.getCode());
}
@Test
void findEmtakCodes_validates_input_params() {
OfficialsGroupEmtakCodesRequest request = composeGroupEmtakCodesRequest(null, null, STATUS_CURRENT);
......
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