@Test public void execute_throwsIfMandatoryFieldsNotSet() { assertThatThrownBy(() -> { cut.execute(); }).isInstanceOf(IllegalStateException.class).hasMessageContaining("Refresh token not set"); }
public OAuth2TokenResponse execute() throws IllegalStateException, IllegalArgumentException, TokenFlowException { checkRequest(request); return refreshToken(refreshToken, request); }
RefreshTokenFlow { public OAuth2TokenResponse execute() throws IllegalStateException, IllegalArgumentException, TokenFlowException { checkRequest(request); return refreshToken(refreshToken, request); } }
RefreshTokenFlow { public OAuth2TokenResponse execute() throws IllegalStateException, IllegalArgumentException, TokenFlowException { checkRequest(request); return refreshToken(refreshToken, request); } RefreshTokenFlow(OAuth2TokenService tokenService, OAuth2ServiceEndpointsProvider endpointsProvider,
			ClientCredentials clientCredentials); }
RefreshTokenFlow { public OAuth2TokenResponse execute() throws IllegalStateException, IllegalArgumentException, TokenFlowException { checkRequest(request); return refreshToken(refreshToken, request); } RefreshTokenFlow(OAuth2TokenService tokenService, OAuth2ServiceEndpointsProvider endpointsProvider,
			ClientCredentials clientCredentials); RefreshTokenFlow subdomain(String subdomain); RefreshTokenFlow refreshToken(String refreshToken); RefreshTokenFlow disableCache(boolean disableCache); OAuth2TokenResponse execute(); }
RefreshTokenFlow { public OAuth2TokenResponse execute() throws IllegalStateException, IllegalArgumentException, TokenFlowException { checkRequest(request); return refreshToken(refreshToken, request); } RefreshTokenFlow(OAuth2TokenService tokenService, OAuth2ServiceEndpointsProvider endpointsProvider,
			ClientCredentials clientCredentials); RefreshTokenFlow subdomain(String subdomain); RefreshTokenFlow refreshToken(String refreshToken); RefreshTokenFlow disableCache(boolean disableCache); OAuth2TokenResponse execute();  }