Skip to content
Snippets Groups Projects
Commit 2a4c93e9 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

Updated assertion

parent 03d29887
No related branches found
No related tags found
1 merge request!289Upgrade First Party Library Dependencies for Release 0.22
Pipeline #199314 passed with warnings
......@@ -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