diff options
author | 2020-06-17 22:27:45 +0200 | |
---|---|---|
committer | 2020-06-19 10:55:13 +0000 | |
commit | 8420f17341541296448af7c61e11416e766d7216 (patch) | |
tree | d4d4f8fe4da181b1512e239fe00207ae57355f88 /openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test | |
parent | 7cd3f6bbd4524421f290aa6b5f89836bc98c8cbf (diff) |
datatypes.Constants:
- adhere to naming conventions
- remove unused
Issue-ID: SDC-3126
Change-Id: I4ea23a8c69aaaf8fcc404868d3c59c47d09ba442
Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test')
-rw-r--r-- | openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/impl/ToscaConverterImplTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/impl/ToscaConverterImplTest.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/impl/ToscaConverterImplTest.java index bcfc3d8eda..5d25635a0e 100644 --- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/impl/ToscaConverterImplTest.java +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/impl/ToscaConverterImplTest.java @@ -41,8 +41,8 @@ import java.util.*; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -import static org.openecomp.core.converter.datatypes.Constants.globalStName; -import static org.openecomp.core.converter.datatypes.Constants.mainStName; +import static org.openecomp.core.converter.datatypes.Constants.GLOBAL_ST_NAME; +import static org.openecomp.core.converter.datatypes.Constants.MAIN_ST_NAME; public class ToscaConverterImplTest { @@ -167,7 +167,7 @@ public class ToscaConverterImplTest { private void validateConvertorOutput(String outputFilesPath, ToscaServiceModel toscaServiceModel) throws IOException { - ServiceTemplate mainSt = toscaServiceModel.getServiceTemplates().get(mainStName); + ServiceTemplate mainSt = toscaServiceModel.getServiceTemplates().get(MAIN_ST_NAME); Map<String, ServiceTemplate> expectedOutserviceTemplates = new HashMap<>(); loadServiceTemplates(outputFilesPath, new ToscaExtensionYamlUtil(), expectedOutserviceTemplates); @@ -227,12 +227,12 @@ public class ToscaConverterImplTest { YamlUtil yamlUtil = new YamlUtil(); if (Objects.nonNull(gloablSubstitutionServiceTemplate)) { assertEquals("difference global substitution service template: ", - yamlUtil.objectToYaml(expectedOutserviceTemplates.get(globalStName)), + yamlUtil.objectToYaml(expectedOutserviceTemplates.get(GLOBAL_ST_NAME)), yamlUtil.objectToYaml(gloablSubstitutionServiceTemplate)); } if (Objects.nonNull(mainServiceTemplate)) { assertEquals("difference main service template: ", - yamlUtil.objectToYaml(expectedOutserviceTemplates.get(mainStName)), + yamlUtil.objectToYaml(expectedOutserviceTemplates.get(MAIN_ST_NAME)), yamlUtil.objectToYaml(mainServiceTemplate)); } } |