Skip to content
Snippets Groups Projects
Commit 4e40c9ce authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM) Committed by David Diederich
Browse files

Updated assertion

(cherry picked from commit 2a4c93e9)
parent 19f8c319
No related branches found
No related tags found
1 merge request!291Cherry-pick 'Upgrade First Party Library Dependencies for Release 0.22' into release/0.22
Pipeline #199541 skipped
......@@ -51,9 +51,10 @@ public class AuthenticationServiceTest {
boolean result = authenticationService.isAuthorized(httpServletRequest, httpServletResponse);
Assert.assertFalse(result);
Mockito.verify(jaxRsDpsLog).error("User not authenticated. Response: HttpResponse(headers=null," +
" body=, contentType=, responseCode=0, exception=java.net.MalformedURLException: no protocol:" +
" entitlementsUrl/groups, request=entitlementsUrl/groups, httpMethod=GET, latency=0)");
Mockito.verify(jaxRsDpsLog)
.error("User not authenticated. Response: HttpResponse(headers=null," +
" body=, contentType=, responseCode=0, exception=org.apache.http.client.ClientProtocolException, "
+ "request=entitlementsUrl/groups, httpMethod=GET, latency=0)");
Mockito.verify(handlerExceptionResolver).resolveException(Mockito.eq(httpServletRequest),
Mockito.eq(httpServletResponse), Mockito.eq(null), Mockito.any(AppException.class));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment