diff options
author | William Reehil <william.reehil@att.com> | 2020-08-06 16:01:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-06 16:01:42 +0000 |
commit | 926c05ce1a2f808295c9c0f2f6068feb85da2d46 (patch) | |
tree | a38d037da582855b17ad4420f65ff65c0875d2ac /src/test/java | |
parent | 4f1235efe2213369b79c7abf779c4a82258948c4 (diff) | |
parent | 65f8ce45775881824ba56f72b0be06fd9577f22b (diff) |
Merge "Add 'category' of service model to Babel artifact"
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/onap/aai/babel/xml/generator/api/AaiModelGeneratorTest.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/java/org/onap/aai/babel/xml/generator/api/AaiModelGeneratorTest.java b/src/test/java/org/onap/aai/babel/xml/generator/api/AaiModelGeneratorTest.java index db01cb6..27e158f 100644 --- a/src/test/java/org/onap/aai/babel/xml/generator/api/AaiModelGeneratorTest.java +++ b/src/test/java/org/onap/aai/babel/xml/generator/api/AaiModelGeneratorTest.java @@ -37,16 +37,14 @@ public class AaiModelGeneratorTest { private AaiModelGenerator generator = new AaiModelGenerator(); @Test - public void shouldGenerateModelWithInstantiationType() throws XmlArtifactGenerationException, IOException { + public void shouldGenerateModelWithCategory() throws XmlArtifactGenerationException, IOException { new ArtifactTestUtils().loadWidgetMappings(); Model model = new Service(); - model.populateModelIdentificationInformation(Maps.of("instantiationType", "macro")); + model.populateModelIdentificationInformation(Maps.of("category", "NST")); String generatedXml = generator.generateModelFor(model); - assertThat(generatedXml).containsSubsequence(" <model-vers>\n" + - " <model-ver>\n" + - " <orchestration-type>macro</orchestration-type>"); + assertThat(generatedXml).containsSubsequence(" <model-role>NST</model-role>"); } } |