Add coverage to a few Controllers 64/96964/4
authorPamela Dragosh <pdragosh@research.att.com>
Fri, 11 Oct 2019 18:03:19 +0000 (14:03 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Fri, 11 Oct 2019 18:50:49 +0000 (14:50 -0400)
commit4e6615528e03f1a6f7808e28481bd55fe39ed572
tree2f46083b28015778d879d57934eca4b0aaac161b
parentf36e53a3637e1204a42491ec0eeed7b3c763f681
Add coverage to a few Controllers

Cleaned up parts of the code that were useless.

The coverage for 2 classes are now over 80%. The
CreatePolicyController coverage is now 100%

I have no idea what kind of policy the ActionPolicyController
is expecting, seems bizarre so will have to leave it alone
and move on.

Issue-ID: POLICY-2133
Change-Id: I80629d3b6f2aba301483f3fa8c3cad16cc01ffbe
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
POLICY-SDK-APP/src/main/java/org/onap/policy/controller/ActionPolicyController.java
POLICY-SDK-APP/src/main/java/org/onap/policy/controller/AdminTabController.java
POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreatePolicyController.java
POLICY-SDK-APP/src/test/java/org/onap/policy/controller/ActionPolicyControllerTest.java [new file with mode: 0644]
POLICY-SDK-APP/src/test/java/org/onap/policy/controller/AdminTabControllerTest.java
POLICY-SDK-APP/src/test/java/org/onap/policy/controller/AutoPushControllerTest.java
POLICY-SDK-APP/src/test/java/org/onap/policy/controller/CreatePolicyControllerTest.java [new file with mode: 0644]