diff options
Diffstat (limited to 'src/test/java/org/openecomp')
-rw-r--r-- | src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java b/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java index ea5c2ef..75f904f 100644 --- a/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java +++ b/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java @@ -59,5 +59,19 @@ public class ToscaParserServiceInputTest extends SdcToscaParserBasicTest { Object serviceInputLeafValue = fdntCsarHelper.getServiceInputLeafValueOfDefault("service_naming#default"); assertEquals("test service naming", serviceInputLeafValue); } + + @Test + public void testGetServiceComplexInputLeafValueOfDefault() { + String serviceInputLeafValue = fdntCsarHelperWithInputs.getServiceInputLeafValueOfDefault("complex_input#default#ipv4_subnet_default_assignment#cidr_mask"); + assertEquals(serviceInputLeafValue, "24"); + } + + @Test + public void testGetServiceDummyComplexInputLeafValueOfDefault() { + String serviceInputLeafValue = fdntCsarHelperWithInputs.getServiceInputLeafValueOfDefault("complex_input#default#ipv4_subnet_default_assignment#XXX"); + assertNull(serviceInputLeafValue); + } + + //endregion } |