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:
@@ -114,7 +114,7 @@ public class UsersAndConfigTests {
|
||||
response = commonSetup.client.target(commonSetup.basePath).request().post(Entity.json(body));
|
||||
assertThat(response.getStatus(), is(200));
|
||||
|
||||
JsonElement e = new JsonParser().parse(response.readEntity(String.class)).getAsJsonArray().get(0);
|
||||
JsonElement e = JsonParser.parseString(response.readEntity(String.class)).getAsJsonArray().get(0);
|
||||
e = e.getAsJsonObject().get("success");
|
||||
HueSuccessResponseCreateUser rc = commonSetup.cs.gson.fromJson(e, HueSuccessResponseCreateUser.class);
|
||||
assertNotNull(rc);
|
||||
|
||||
Reference in New Issue
Block a user