X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Fclamp%2Fclds%2Fclient%2FCdsServicesTest.java;h=3d189cf711269156ced42e63608a4674fdb11099;hb=536db7b811eba341aef48a745b495da068d170eb;hp=ec39fc3db851abc740e85ff8f32453c323ffda1f;hpb=a52998489e2c38f7d443a8d7e4ff0b6a6b6acc8a;p=clamp.git diff --git a/src/test/java/org/onap/clamp/clds/client/CdsServicesTest.java b/src/test/java/org/onap/clamp/clds/client/CdsServicesTest.java index ec39fc3d..3d189cf7 100644 --- a/src/test/java/org/onap/clamp/clds/client/CdsServicesTest.java +++ b/src/test/java/org/onap/clamp/clds/client/CdsServicesTest.java @@ -23,34 +23,32 @@ package org.onap.clamp.clds.client; import com.google.gson.JsonObject; - import java.io.IOException; - import org.junit.Test; import org.onap.clamp.clds.util.JsonUtils; -import org.onap.clamp.clds.util.ResourceFileUtil; +import org.onap.clamp.clds.util.ResourceFileUtils; import org.skyscreamer.jsonassert.JSONAssert; public class CdsServicesTest { @Test public void testParseCdsListTypeProperties() throws IOException { - String cdsResponse = ResourceFileUtil + String cdsResponse = ResourceFileUtils .getResourceAsString("example/cds-response/vFW-CDS-resource-assignment-workflow.json"); CdsServices services = new CdsServices(); JsonObject output = services.parseCdsResponse(cdsResponse); - JSONAssert.assertEquals(ResourceFileUtil + JSONAssert.assertEquals(ResourceFileUtils .getResourceAsString("example/cds-response/vFW-CDS-resource-assignment-wf-expected-result.json"), JsonUtils.GSON.toJson(output), true); } @Test public void testParseCdsResponse() throws IOException { - String cdsResponse = ResourceFileUtil + String cdsResponse = ResourceFileUtils .getResourceAsString("example/cds-response/vFW-CDS-modify-config-workflow.json"); CdsServices services = new CdsServices(); JsonObject output = services.parseCdsResponse(cdsResponse); - JSONAssert.assertEquals(ResourceFileUtil + JSONAssert.assertEquals(ResourceFileUtils .getResourceAsString("example/cds-response/vFW-CDS-modify-config-wf-expected-result.json"), JsonUtils.GSON.toJson(output), true); }