Fix new sonars in policy/pap 82/113382/3
authorJim Hahn <jrh3@att.com>
Wed, 30 Sep 2020 14:47:12 +0000 (10:47 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 30 Sep 2020 14:59:45 +0000 (10:59 -0400)
commit61dafe1cb86e4f82b2062d56bbc343df19c31c5f
tree2caa753a7298175f95711a870f56b6befdee1481
parent71555aaa4387098616a404bf193e7bb6936e3f76
Fix new sonars in policy/pap

Addressed the following sonar issues:
- too many assertions in test method
- extract common test method
- replace this null literal by an "Optional" object

Issue-ID: POLICY-2679
Change-Id: Ie80e5c5fdb94230a2773ea2931758cf54204ae86
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
main/src/test/java/org/onap/policy/pap/main/rest/TestPapStatisticsManager.java
main/src/test/java/org/onap/policy/pap/main/rest/e2e/StatisticsTest.java