From 95ad93091d5fa6e377e76f312d495151bddc9da8 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Wed, 14 Oct 2020 20:56:11 +0100 Subject: Support interface input during import VFC Change-Id: I097ce258a7dadbedf1aff6ce53dd1286da074552 Issue-ID: SDC-3372 Signed-off-by: andre.schmid --- .../elements/InterfaceDataDefinitionTest.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'common-be/src/test') diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinitionTest.java index 1393a095b5..1c0d84df2a 100644 --- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinitionTest.java +++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinitionTest.java @@ -20,12 +20,14 @@ package org.openecomp.sdc.be.datatypes.elements; -import org.junit.Test; - +import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields; -public class InterfaceDataDefinitionTest { +class InterfaceDataDefinitionTest { private InterfaceDataDefinition createTestSubject() { return new InterfaceDataDefinition(); @@ -174,4 +176,14 @@ public class InterfaceDataDefinitionTest { testSubject = createTestSubject(); testSubject.setOperations(operations); } + + @Test + void testInputs() { + final InterfaceDataDefinition interfaceDataDefinition = new InterfaceDataDefinition(); + final HashMap anInputMap = new HashMap<>(); + anInputMap.put("anyEntry", new InputDataDefinition()); + interfaceDataDefinition.setInputs(anInputMap); + Assertions.assertEquals(interfaceDataDefinition.getInputs(), + interfaceDataDefinition.getToscaPresentationValue(JsonPresentationFields.INTERFACE_INPUT)); + } } -- cgit 1.2.3-korg