Fix policycreation test 61/102161/3
authorPamela Dragosh <pdragosh@research.att.com>
Fri, 21 Feb 2020 17:48:49 +0000 (12:48 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Fri, 21 Feb 2020 17:55:43 +0000 (12:55 -0500)
commit3710a41879717441884c75262015c536819a34c2
tree67bbfc04a95f08c76036234c0d9c06ac7fc84395
parent9a03ea31d42b8a73c3aa8f96bbad85093cb169a7
Fix policycreation test

This test was only performing code coverage, it should have revealed
that IllegalArgument exceptions were incorrect.

Fixed bug in savePolicy when an exception being thrown has a null
message.

Added warning and error messages for debugging in the future.

Issue-ID: POLICY-1590
Change-Id: Ie32a73adbaf944f96e411a2c612cd8293382911c
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/PolicyDbDaoTransactionInstance.java
ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/policycontroller/PolicyCreation.java
ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/policycontroller/PolicyCreationTest.java