summaryrefslogtreecommitdiffstats
path: root/aai-schema-ingest
diff options
context:
space:
mode:
authorWilliam Reehil <william.reehil@att.com>2022-11-11 13:37:28 +0000
committerGerrit Code Review <gerrit@onap.org>2022-11-11 13:37:28 +0000
commit131345b4ef18b8dc2c346c6af59f90f0d3fde431 (patch)
tree0fb1d89ae31c0a153067bb383a5851e4424f2aca /aai-schema-ingest
parent3824f66ae66823d5de0be9b49f5c85113d9e20e7 (diff)
parent5eb0e49534114edf8a76fef5b2a8e50c7bdaa812 (diff)
Merge "Replace deprecated methods in aai-common"
Diffstat (limited to 'aai-schema-ingest')
-rw-r--r--aai-schema-ingest/src/test/java/org/onap/aai/restclient/MockRestClient.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/aai-schema-ingest/src/test/java/org/onap/aai/restclient/MockRestClient.java b/aai-schema-ingest/src/test/java/org/onap/aai/restclient/MockRestClient.java
index 74d254b1..57988f0b 100644
--- a/aai-schema-ingest/src/test/java/org/onap/aai/restclient/MockRestClient.java
+++ b/aai-schema-ingest/src/test/java/org/onap/aai/restclient/MockRestClient.java
@@ -179,14 +179,11 @@ public class MockRestClient extends RestClient {
public JsonObject getPayload(String filename) throws IOException {
InputStream inputStream = getClass().getClassLoader().getResourceAsStream(filename);
- // InputStream inputStream = new FileInputStream(filename);
-
String result = IOUtils.toString(inputStream, StandardCharsets.UTF_8);
String message = String.format("Unable to find the %s in src/test/resources", filename);
assertNotNull(message, inputStream);
- JsonParser parser = new JsonParser();
- JsonObject payload = parser.parse(result).getAsJsonObject();
+ JsonObject payload = JsonParser.parseString(result).getAsJsonObject();
return payload;
}