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:
@@ -104,7 +104,7 @@ public class HttpUtils {
|
||||
String url = "http://" + ip + ":" + webPort + "/jsonrpc.js";
|
||||
String json = HttpUtils.post(url, JSON_REQ);
|
||||
logger.trace("Recieved json from server {}", json);
|
||||
JsonElement resp = new JsonParser().parse(json);
|
||||
JsonElement resp = JsonParser.parseString(json);
|
||||
String cliPort = resp.getAsJsonObject().get("result").getAsJsonObject().get("_p2").getAsString();
|
||||
return Integer.parseInt(cliPort);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user