aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorXue Gao <xg353y@intl.att.com>2019-04-26 11:32:21 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-26 11:32:21 +0000
commit893b3ad8f4b985c35e9f24346eca515e6bc251e8 (patch)
tree65b2f6ec219967ba34a1dc69cc942315f77ec89f /src/test/java
parentd4976b71508b2a3670167b7f0f412d3bfdd6ce54 (diff)
parent5415b26467f198856b3149c11827a93e2ed8a72a (diff)
Merge "Change Yaml to Json payload"
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java b/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java
index 76e29c31f..b12ca89f5 100644
--- a/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java
+++ b/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java
@@ -43,8 +43,10 @@ public class OperationalPolicyPayloadTest {
JsonObject jsonConfig = new GsonBuilder().create().fromJson(
ResourceFileUtil.getResourceAsString("tosca/operational-policy-properties.json"), JsonObject.class);
OperationalPolicy policy = new OperationalPolicy("testPolicy", null, jsonConfig);
- assertThat(policy.createPolicyPayload())
+ assertThat(policy.createPolicyPayloadYaml())
.isEqualTo(ResourceFileUtil.getResourceAsString("tosca/operational-policy-payload.yaml"));
+ assertThat(policy.createPolicyPayload())
+ .isEqualTo(ResourceFileUtil.getResourceAsString("tosca/operational-policy-payload.json"));
}
@Test