summaryrefslogtreecommitdiffstats
path: root/ms/gra/gra-app/src/main
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-05-11 15:45:20 -0400
committerDan Timoney <dtimoney@att.com>2021-05-11 15:45:20 -0400
commitada20201d47d8b8bc97a1ed28bba6ba5c3258921 (patch)
treef5de690190cf033a5b62968ebcc15f08ec114c4a /ms/gra/gra-app/src/main
parentd91188a824d4a74f6787ded5e203d710974b4a7e (diff)
Improve test coverage for sdnc/apps
Added test cases for 2 data object classes previously uncovered. Change-Id: I371fae43c0425534e8300af5e85a39086afa0b63 Issue-ID: SDNC-1543 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/gra/gra-app/src/main')
-rw-r--r--ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ConfigApiController.java4
-rw-r--r--ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPortMirrorConfigurations.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ConfigApiController.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ConfigApiController.java
index 7508eb8..ac6a333 100644
--- a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ConfigApiController.java
+++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ConfigApiController.java
@@ -193,13 +193,13 @@ public class ConfigApiController implements ConfigApi {
portMirrorConfiguration = existingConfiguration.get(0);
} else {
portMirrorConfiguration = new ConfigPortMirrorConfigurations();
- portMirrorConfiguration.setConfigureationId(configurationId);
+ portMirrorConfiguration.setConfigurationId(configurationId);
}
try {
portMirrorConfiguration.setPmcData(objectMapper.writeValueAsString(newConfiguration.getConfigurationData()));
} catch (JsonProcessingException e) {
- log.error("Could not serialize porr-mirror configuration data for {}", portMirrorConfiguration.getConfigureationId(), e);
+ log.error("Could not serialize porr-mirror configuration data for {}", portMirrorConfiguration.getConfigurationId(), e);
throw new RestApplicationException("data-conversion", "Request could not be completed due to internal error", e, HttpStatus.INTERNAL_SERVER_ERROR.value());
}
diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPortMirrorConfigurations.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPortMirrorConfigurations.java
index cdc5462..347fe59 100644
--- a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPortMirrorConfigurations.java
+++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPortMirrorConfigurations.java
@@ -59,11 +59,11 @@ public class ConfigPortMirrorConfigurations {
}
}
- public String getConfigureationId() {
+ public String getConfigurationId() {
return configurationId;
}
- public void setConfigureationId(String configureationId) {
+ public void setConfigurationId(String configureationId) {
this.configurationId = configureationId;
}