Commit 65c31bd0 authored by handolukats's avatar handolukats
Browse files

fixed tests

parent 4aae160c
...@@ -51,16 +51,6 @@ class OfficialsGroupEmtakListenerTest extends OfficialsAppTestBase { ...@@ -51,16 +51,6 @@ class OfficialsGroupEmtakListenerTest extends OfficialsAppTestBase {
assertThat(response.getPayload().stream().allMatch(g -> g.getObjectStatus() == ObjectStatus.CURRENT)).isTrue(); 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 @Test
void findEmtakCodes_validates_input_params() { void findEmtakCodes_validates_input_params() {
OfficialsGroupEmtakCodesRequest request = composeGroupEmtakCodesRequest(null, null, STATUS_CURRENT); 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