From 63b6248cf7d56bac2e641df123b8c8f647855f30 Mon Sep 17 00:00:00 2001 From: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com> Date: Wed, 1 Jul 2020 11:35:47 +0200 Subject: [PATCH] TSK-1308: fixed compile issues introduced in rebase --- .../rest/AccessIdControllerIntTest.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/rest/taskana-rest-spring/src/test/java/pro/taskana/common/rest/AccessIdControllerIntTest.java b/rest/taskana-rest-spring/src/test/java/pro/taskana/common/rest/AccessIdControllerIntTest.java index f5d305f10..82bbfc85b 100644 --- a/rest/taskana-rest-spring/src/test/java/pro/taskana/common/rest/AccessIdControllerIntTest.java +++ b/rest/taskana-rest-spring/src/test/java/pro/taskana/common/rest/AccessIdControllerIntTest.java @@ -94,13 +94,12 @@ class AccessIdControllerIntTest { @Test void testBadRequestWhenSearchForIsTooShort() { ThrowingCallable httpCall = - () -> { - TEMPLATE.exchange( - restHelper.toUrl(Mapping.URL_ACCESSID) + "?search-for=al", - HttpMethod.GET, - restHelper.defaultRequest(), - ParameterizedTypeReference.forType(List.class)); - }; + () -> + TEMPLATE.exchange( + restHelper.toUrl(Mapping.URL_ACCESSID) + "?search-for=al", + HttpMethod.GET, + restHelper.defaultRequest(), + ParameterizedTypeReference.forType(List.class)); assertThatThrownBy(httpCall) .isInstanceOf(HttpClientErrorException.class) .hasMessageContaining("Minimum searchFor length =") @@ -111,7 +110,7 @@ class AccessIdControllerIntTest { @Test void should_returnAccessIdsOfGroupsTheAccessIdIsMemberOf_ifAccessIdOfUserIsGiven() { ResponseEntity> response = - template.exchange( + TEMPLATE.exchange( restHelper.toUrl(Mapping.URL_ACCESSID_GROUPS) + "?access-id=teamlead-2", HttpMethod.GET, restHelper.defaultRequest(), @@ -132,7 +131,7 @@ class AccessIdControllerIntTest { @Test void should_returnAccessIdsOfGroupsTheAccessIdIsMemberOf_ifAccessIdOfGroupIsGiven() { ResponseEntity> response = - template.exchange( + TEMPLATE.exchange( restHelper.toUrl(Mapping.URL_ACCESSID_GROUPS) + "?access-id=cn=Organisationseinheit KSC 1," + "cn=Organisationseinheit KSC,cn=organisation,OU=Test,O=TASKANA", @@ -151,7 +150,7 @@ class AccessIdControllerIntTest { void should_throwNotAuthorizedException_ifCallerOfGroupRetrievalIsNotAdminOrBusinessAdmin() { ThrowingCallable call = () -> - template.exchange( + TEMPLATE.exchange( restHelper.toUrl(Mapping.URL_ACCESSID_GROUPS) + "?access-id=teamlead-2", HttpMethod.GET, new HttpEntity<>(restHelper.getHeadersUser_1_1()), @@ -167,7 +166,7 @@ class AccessIdControllerIntTest { void should_throwNotAuthorizedException_ifCallerOfValidationIsNotAdminOrBusinessAdmin() { ThrowingCallable call = () -> - template.exchange( + TEMPLATE.exchange( restHelper.toUrl(Mapping.URL_ACCESSID) + "?search-for=al", HttpMethod.GET, new HttpEntity<>(restHelper.getHeadersUser_1_1()),