diff options
Diffstat (limited to 'plans/so/integration-etsi-testing/so-simulators/aai-simulator/src/main/java/org/onap/so/aai/simulator/controller/ProjectController.java')
-rw-r--r-- | plans/so/integration-etsi-testing/so-simulators/aai-simulator/src/main/java/org/onap/so/aai/simulator/controller/ProjectController.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plans/so/integration-etsi-testing/so-simulators/aai-simulator/src/main/java/org/onap/so/aai/simulator/controller/ProjectController.java b/plans/so/integration-etsi-testing/so-simulators/aai-simulator/src/main/java/org/onap/so/aai/simulator/controller/ProjectController.java index 5f63494d..0c3b3b7b 100644 --- a/plans/so/integration-etsi-testing/so-simulators/aai-simulator/src/main/java/org/onap/so/aai/simulator/controller/ProjectController.java +++ b/plans/so/integration-etsi-testing/so-simulators/aai-simulator/src/main/java/org/onap/so/aai/simulator/controller/ProjectController.java @@ -19,6 +19,7 @@ */ package org.onap.so.aai.simulator.controller; +import static org.onap.so.aai.simulator.utils.Constants.PROJECT; import static org.onap.so.aai.simulator.utils.Constants.PROJECT_URL; import static org.onap.so.aai.simulator.utils.Utils.getRequestErrorResponseEntity; import static org.onap.so.aai.simulator.utils.Utils.getResourceVersion; @@ -97,15 +98,13 @@ public class ProjectController { return ResponseEntity.ok(project); case COUNT: final Map<String, Object> map = new HashMap<>(); - map.put(projectName, 1); + map.put(PROJECT, 1); return ResponseEntity.ok(new Result(map)); default: break; } LOGGER.error("invalid format type :{}", format); return getRequestErrorResponseEntity(request); - - } @PutMapping(value = "/{project-name}/relationship-list/relationship", |