+ "\"token_type\" : \"Bearer\","
+ "\"expires_in\" : 3600,"
+ "\"refresh_token\" : \"newRefreshToken2\"}",
SoapResponseXmlProvider.getTestSoapResponse(API_VERSION)));
OfflineCredentials offlineCredentials =
new OfflineCredentials.Builder()
.forApi(OfflineCredentials.Api.DFP)
.withTokenUrlServer(testHttpServer.getServerUrl())
.fromFile(
DfpAxisSoapIntegrationTest.class.getResource("props/ads-test.properties"))
.build();
Credential credential = offlineCredentials.generateCredential();
assertTrue(testHttpServer.getLastRequestBody().contains("grant_type=refresh_token"));
assertTrue(testHttpServer.getLastRequestBody().contains("refresh_token=refreshToken"));
assertTrue(testHttpServer.getLastRequestBody().contains("client_id=clientId"));
assertTrue(testHttpServer.getLastRequestBody().contains("client_secret=clientSecret"));