From 6df52982d9e22fc1ff7a56eea8714a2598a51639 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 3 Sep 2019 00:35:54 -0700 Subject: changes in policy decoder per hpa OOF definition Change-Id: I25f956c863f93c998c681535f5ef7ec43ca88cde Issue-ID: POLICY-2029 Signed-off-by: Liang Ding --- .../policy/distribution/reception/decoding/pdpx/TestContent.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/reception-plugins/src/test/java') diff --git a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestContent.java b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestContent.java index d678239f..da77eefb 100644 --- a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestContent.java +++ b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestContent.java @@ -44,6 +44,8 @@ public class TestContent { private void validateReport(final String identity, final String policyType, final Content content) { + assertEquals(0, content.getScope().size()); + assertEquals(0, content.getGeography().size()); assertEquals(identity, content.getIdentity()); assertEquals(policyType, content.getPolicyType()); assertEquals(0, content.getPolicyScope().size()); @@ -51,6 +53,11 @@ public class TestContent { assertEquals(1, content.getPolicyScope().size()); content.getPolicyScope().remove("vFW"); assertEquals(0, content.getPolicyScope().size()); + assertEquals(0, content.getServices().size()); + content.getServices().add("vCPE"); + assertEquals(1, content.getServices().size()); + content.getServices().remove("vCPE"); + assertEquals(0, content.getServices().size()); assertEquals(0, content.getFlavorFeatures().size()); FlavorFeature flavorFeature = new FlavorFeature(); content.getFlavorFeatures().add(flavorFeature); -- cgit 1.2.3-korg