diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-02-21 18:30:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-02-21 18:30:10 +0000 |
commit | f037497b757391f4932e2e9495dd5112918ad4cf (patch) | |
tree | f0c92a9033d02fba2e03074601b0e8d3f21c5b7f /POLICY-SDK-APP/src/main | |
parent | ad57603e2d13c432d680ac924f4ae33a256fedd3 (diff) | |
parent | e2b2ebadd1038a72157bd67312307aa19acd933c (diff) |
Merge "Added Junits for POLICY-SDK-APP controllers"
Diffstat (limited to 'POLICY-SDK-APP/src/main')
-rw-r--r-- | POLICY-SDK-APP/src/main/java/org/onap/policy/controller/DashboardController.java | 13 | ||||
-rw-r--r-- | POLICY-SDK-APP/src/main/java/org/onap/policy/controller/PolicyRolesController.java | 4 |
2 files changed, 14 insertions, 3 deletions
diff --git a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/DashboardController.java b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/DashboardController.java index adb91ec27..d1483a223 100644 --- a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/DashboardController.java +++ b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/DashboardController.java @@ -75,11 +75,18 @@ import com.fasterxml.jackson.databind.ObjectMapper; public class DashboardController extends RestrictedBaseController{ private static final Logger policyLogger = FlexLogger.getLogger(DashboardController.class); @Autowired - SystemLogDbDao systemDAO; - - @Autowired CommonClassDao commonClassDao; + + @Autowired + SystemLogDbDao systemDAO; + public void setCommonClassDao(CommonClassDao commonClassDao) { + this.commonClassDao = commonClassDao; + } + public void setSystemLogDbDao(SystemLogDbDao systemDAO){ + this.systemDAO = systemDAO; + } + private int pdpCount; private PDPGroupContainer pdpConatiner; private ArrayList<Object> pdpStatusData; diff --git a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/PolicyRolesController.java b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/PolicyRolesController.java index 4b966154c..daf3d6c97 100644 --- a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/PolicyRolesController.java +++ b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/PolicyRolesController.java @@ -61,6 +61,10 @@ public class PolicyRolesController extends RestrictedBaseController{ @Autowired CommonClassDao commonClassDao; + public void setCommonClassDao(CommonClassDao commonClassDao) { + this.commonClassDao = commonClassDao; + } + List<String> scopelist; @RequestMapping(value={"/get_RolesData"}, method={org.springframework.web.bind.annotation.RequestMethod.GET} , produces=MediaType.APPLICATION_JSON_VALUE) |