diff options
author | Jim Hahn <jrh3@att.com> | 2019-10-31 17:39:47 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-10-31 17:54:46 -0400 |
commit | 26515a637ffe517301453c3477cafbdac730735b (patch) | |
tree | 73d922a15bdac20fc829584ee7a96d27398e79a1 /models-pap/src/test | |
parent | dc1773e466f12dab993d1241a1a0b7ce36695713 (diff) |
Change field names in policy notifications to match wiki
Field names looked like "policyType.name". Changed them to look like
"policy-type", instead, to match the wiki for the notifications to be
sent to DCAE.
Change-Id: Ib3cef1712fd12a44db8acdcff2245d800b21137a
Issue-ID: POLICY-2190
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-pap/src/test')
-rw-r--r-- | models-pap/src/test/java/org/onap/policy/models/pap/concepts/PolicyStatusTest.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PolicyStatusTest.java b/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PolicyStatusTest.java index 0a00e7b60..869bd1dbf 100644 --- a/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PolicyStatusTest.java +++ b/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PolicyStatusTest.java @@ -19,7 +19,6 @@ package org.onap.policy.models.pap.concepts; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertSame; import org.junit.Test; import org.onap.policy.common.utils.coder.CoderException; @@ -39,8 +38,13 @@ public class PolicyStatusTest { // test constructor with arguments PolicyStatus status = new PolicyStatus(type, policy); - assertSame(type, status.getPolicyType()); - assertSame(policy, status.getPolicy()); + assertEquals("my-type", status.getPolicyTypeId()); + assertEquals("3.2.1", status.getPolicyTypeVersion()); + assertEquals("my-name", status.getPolicyId()); + assertEquals("1.2.3", status.getPolicyVersion()); + + assertEquals(type, status.getPolicyType()); + assertEquals(policy, status.getPolicy()); assertEquals(0, status.getSuccessCount()); assertEquals(0, status.getFailureCount()); |