From 46c8422501ac8321e11493693f2ad5b2ea8e1293 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 16 Apr 2019 11:08:38 +0000 Subject: Fix null not accepted on PDP message Issue-ID: POLICY-1648 Change-Id: I580d1c433cd3a5730b115ef6353770f17939cf3a Signed-off-by: liamfallon --- .../org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models-pdp/src/test/java/org') diff --git a/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java b/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java index 5a27210fc..ebdf31c2f 100644 --- a/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java +++ b/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java @@ -149,6 +149,8 @@ public class JpaPdpTest { testJpaPdp.setKey(savedKey); assertTrue(testJpaPdp.validate(new PfValidationResult()).isOk()); + testJpaPdp.setMessage(null); + assertTrue(testJpaPdp.validate(new PfValidationResult()).isOk()); testJpaPdp.setMessage(""); assertFalse(testJpaPdp.validate(new PfValidationResult()).isOk()); testJpaPdp.setMessage("Valid Message"); -- cgit 1.2.3-korg