diff options
author | Jim Hahn <jrh3@att.com> | 2021-06-01 10:49:40 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-06-03 08:42:42 -0400 |
commit | 7db5dc24b1af79f07c0e18c9bb0185800730b1da (patch) | |
tree | 9e99e31aa3b88aebf4a9230d7f31850d20e40ee3 /main/src/test/java/org | |
parent | bdd1d8713925f4d3b86cd04fffb38d6ff64174ed (diff) |
Update junits for bean validator field name
Now that the bean validator uses the serialized field name in its error
messages, updated the junits to use the serialized names, too.
Issue-ID: POLICY-3333
Change-Id: I5d447851b72f460fa71e57936847664e2c789462
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test/java/org')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java b/main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java index 8d7ec96c..0db8e3ce 100644 --- a/main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java +++ b/main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java @@ -498,20 +498,20 @@ public class TestPdpGroupDeployProvider extends ProviderSuper { // list containing a policy with a null name PdpDeployPolicies policies3 = loadFile("PapPoliciesNullPolicyName.json", PdpDeployPolicies.class); assertThatThrownBy(() -> prov.deployPolicies(policies3)).isInstanceOf(PfModelException.class) - .hasMessageContaining("policies").hasMessageContaining("name").hasMessageContaining("null") + .hasMessageContaining("policies").hasMessageContaining("policy-id").hasMessageContaining("null") .hasMessageNotContaining("\"value\""); // list containing a policy with an invalid name PdpDeployPolicies policies4 = loadFile("PapPoliciesInvalidPolicyName.json", PdpDeployPolicies.class); assertThatThrownBy(() -> prov.deployPolicies(policies4)).isInstanceOf(PfModelException.class) - .hasMessageContaining("policies").hasMessageContaining("name").hasMessageContaining("$ abc") - .hasMessageNotContaining("version"); + .hasMessageContaining("policies").hasMessageContaining("policy-id") + .hasMessageContaining("$ abc").hasMessageNotContaining("version"); // list containing a policy with an invalid version PdpDeployPolicies policies5 = loadFile("PapPoliciesInvalidPolicyVersion.json", PdpDeployPolicies.class); assertThatThrownBy(() -> prov.deployPolicies(policies5)).isInstanceOf(PfModelException.class) .hasMessageContaining("policies").hasMessageContaining("version").hasMessageContaining("abc123") - .hasMessageNotContaining("name"); + .hasMessageNotContaining("policy-id"); } /** |