Resolve itest runbundles for Gson and Commons Lang upgrades and fix JsonParser deprecations (#10345)

* Resolve itest runbundles for Gson and Commons Lang upgrades
* Fix JsonParser deprecations too
* Fix feature verification

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2021-03-18 12:15:15 +01:00
committed by GitHub
parent 009208adee
commit 580f293766
86 changed files with 206 additions and 215 deletions

View File

@@ -54,12 +54,12 @@ public class SecondGenerationConfigurationHandler {
String getAuthenticateResponse = httpClient.GET(urlLogin).getContentAsString();
try {
JsonObject getAuthenticateResponseJsonObject = (JsonObject) new JsonParser()
.parse(transformJsonResponse(getAuthenticateResponse));
JsonObject getAuthenticateResponseJsonObject = (JsonObject) JsonParser
.parseString(transformJsonResponse(getAuthenticateResponse));
sessionId = extractSessionId(getAuthenticateResponseJsonObject);
JsonObject authenticateJsonObject = new JsonParser().parse(getAuthenticateResponse.toString())
JsonObject authenticateJsonObject = JsonParser.parseString(getAuthenticateResponse.toString())
.getAsJsonObject();
salt = authenticateJsonObject.get("salt").getAsString();
@@ -84,8 +84,8 @@ public class SecondGenerationConfigurationHandler {
String loginPostResponse = new String(loginPostJsonDataContentResponse.getContent(),
StandardCharsets.UTF_8);
JsonObject loginPostJsonObject = (JsonObject) new JsonParser()
.parse(transformJsonResponse(loginPostResponse));
JsonObject loginPostJsonObject = (JsonObject) JsonParser
.parseString(transformJsonResponse(loginPostResponse));
sessionId = extractSessionId(loginPostJsonObject);