diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-09-28 15:38:33 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-09-28 15:47:05 +0200 |
commit | 9ff8c96c2704a00afa0e12fb9bd7e4245117c63c (patch) | |
tree | 0807327d0070dbec6bf213e1a23e276f612d48fa /src/test/java/org/onap | |
parent | 0bc898a0d69d3206b55ef71685fbef642436b661 (diff) |
new method for policy client
A new method to send JSON in other type to policy
Change-Id: I24b2d36464fa3c9786007ea3772c6a2c4b7c7b66
Issue-ID: CLAMP-59
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/test/java/org/onap')
-rw-r--r-- | src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java b/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java index 22abb13d2..7b6317688 100644 --- a/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java +++ b/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java @@ -35,7 +35,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.onap.clamp.clds.AbstractIT; import org.onap.clamp.clds.client.req.OperationalPolicyReq; -import org.onap.clamp.clds.client.req.TcaMPolicyReq; +import org.onap.clamp.clds.client.req.TcaRequestFormatter; import org.onap.clamp.clds.model.CldsEvent; import org.onap.clamp.clds.model.prop.ModelProperties; import org.onap.clamp.clds.model.prop.Policy; @@ -91,9 +91,7 @@ public class PolicyClientIT extends AbstractIT { Tca tca = prop.getType(Tca.class); if (tca.isFound()) { String tcaPolicyRequestUuid = UUID.randomUUID().toString(); - String policyJson = TcaMPolicyReq.formatTca(refProp, prop); - String correctValue = ResourceFileUtil.getResourceAsString("expected/tca.json"); - JSONAssert.assertEquals(policyJson, correctValue, true); + String policyJson = TcaRequestFormatter.createPolicyJson(refProp, prop); String responseMessage = ""; try { responseMessage = policyClient.sendMicroServiceInJson(policyJson, prop, tcaPolicyRequestUuid); |