diff options
Diffstat (limited to 'common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapComponentInstanceExternalRefsTest.java')
-rw-r--r-- | common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapComponentInstanceExternalRefsTest.java | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapComponentInstanceExternalRefsTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapComponentInstanceExternalRefsTest.java new file mode 100644 index 0000000000..068ff77b17 --- /dev/null +++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapComponentInstanceExternalRefsTest.java @@ -0,0 +1,81 @@ +package org.openecomp.sdc.be.datatypes.elements; + +import java.util.List; +import java.util.Map; + +import org.junit.Test; + +public class MapComponentInstanceExternalRefsTest { + + private MapComponentInstanceExternalRefs createTestSubject() { + return new MapComponentInstanceExternalRefs(); + } + + @Test + public void testGetComponentInstanceExternalRefs() throws Exception { + MapComponentInstanceExternalRefs testSubject; + Map<String, List<String>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceExternalRefs(); + } + + @Test + public void testGetExternalRefsByObjectType() throws Exception { + MapComponentInstanceExternalRefs testSubject; + String objectType = ""; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getExternalRefsByObjectType(objectType); + } + + @Test + public void testSetComponentInstanceExternalRefs() throws Exception { + MapComponentInstanceExternalRefs testSubject; + Map<String, List<String>> componentInstanceExternalRefs = null; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstanceExternalRefs(componentInstanceExternalRefs); + } + + @Test + public void testAddExternalRef() throws Exception { + MapComponentInstanceExternalRefs testSubject; + String objectType = ""; + String ref = ""; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.addExternalRef(objectType, ref); + } + + @Test + public void testDeleteExternalRef() throws Exception { + MapComponentInstanceExternalRefs testSubject; + String objectType = ""; + String ref = ""; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.deleteExternalRef(objectType, ref); + } + + @Test + public void testReplaceExternalRef() throws Exception { + MapComponentInstanceExternalRefs testSubject; + String objectType = ""; + String oldRef = ""; + String newRef = ""; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.replaceExternalRef(objectType, oldRef, newRef); + } +}
\ No newline at end of file |