diff options
author | dhebeha <dhebeha.mj71@wipro.com> | 2020-08-03 21:43:37 +0530 |
---|---|---|
committer | dhebeha <dhebeha.mj71@wipro.com> | 2020-08-06 12:18:15 +0530 |
commit | 65f8ce45775881824ba56f72b0be06fd9577f22b (patch) | |
tree | 3412d9a6fcd5ae43b26025c7adec6b8ebed7354e /src/test/java/org | |
parent | 6600175eb4b9fed25b08e0d6a868d78439f7c4b4 (diff) |
Add 'category' of service model to Babel artifact
Issue-ID: AAI-3017
Signed-off-by: dhebeha <dhebeha.mj71@wipro.com>
Change-Id: I079d3a1ea8c681a1c6d854adf80776ce934c49e2
Diffstat (limited to 'src/test/java/org')
-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>"); } } |