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:
@@ -61,8 +61,7 @@ public class BsbLanApiContentConverterTests {
|
||||
String serializedRequest = BsbLanApiContentConverter.toJson(request);
|
||||
|
||||
// verify serialized content
|
||||
JsonParser parser = new JsonParser();
|
||||
JsonObject json = parser.parse(serializedRequest).getAsJsonObject();
|
||||
JsonObject json = JsonParser.parseString(serializedRequest).getAsJsonObject();
|
||||
|
||||
// Although specifying the parameter as int (which would be nicer) also seems to work,
|
||||
// we use a String here as this is the way it is noted in the documentation.
|
||||
|
||||
Reference in New Issue
Block a user