@Test public void givenAuthorizationHeaderWithJwtToken_whenLogout_thenAuthorizationHeader() throws ZaasClientException, IOException { zaasJwtService.logout(HEADER_AUTHORIZATION); verify(closeableHttpClient, times(1)).execute( argThat(x -> (x.getHeaders(HttpHeaders.AUTHORIZATION) != null) && (x.getHeaders(HttpHeaders.AUTHORIZATION).length == 1) && HEADER_AUTHORIZATION.equals(x.getHeaders(HttpHeaders.AUTHORIZATION)[0].getValue()) ) ); }
@Override public void logout(String jwtToken) throws ZaasClientException { doRequest(() -> logoutJwtToken(jwtToken)); }
ZaasJwtService implements TokenService { @Override public void logout(String jwtToken) throws ZaasClientException { doRequest(() -> logoutJwtToken(jwtToken)); } }
ZaasJwtService implements TokenService { @Override public void logout(String jwtToken) throws ZaasClientException { doRequest(() -> logoutJwtToken(jwtToken)); } ZaasJwtService(CloseableClientProvider client, String baseUrl); }
ZaasJwtService implements TokenService { @Override public void logout(String jwtToken) throws ZaasClientException { doRequest(() -> logoutJwtToken(jwtToken)); } ZaasJwtService(CloseableClientProvider client, String baseUrl); @Override String login(String userId, String password); @Override String login(String authorizationHeader); @Override ZaasToken query(String jwtToken); @Override void logout(String jwtToken); }
ZaasJwtService implements TokenService { @Override public void logout(String jwtToken) throws ZaasClientException { doRequest(() -> logoutJwtToken(jwtToken)); } ZaasJwtService(CloseableClientProvider client, String baseUrl); @Override String login(String userId, String password); @Override String login(String authorizationHeader); @Override ZaasToken query(String jwtToken); @Override void logout(String jwtToken);  }