1 package org.openecomp.sdc.be.datatypes.elements;
8 public class MapComponentInstanceExternalRefsTest {
10 private MapComponentInstanceExternalRefs createTestSubject() {
11 return new MapComponentInstanceExternalRefs();
15 public void testGetComponentInstanceExternalRefs() throws Exception {
16 MapComponentInstanceExternalRefs testSubject;
17 Map<String, List<String>> result;
20 testSubject = createTestSubject();
21 result = testSubject.getComponentInstanceExternalRefs();
25 public void testGetExternalRefsByObjectType() throws Exception {
26 MapComponentInstanceExternalRefs testSubject;
27 String objectType = "";
31 testSubject = createTestSubject();
32 result = testSubject.getExternalRefsByObjectType(objectType);
36 public void testSetComponentInstanceExternalRefs() throws Exception {
37 MapComponentInstanceExternalRefs testSubject;
38 Map<String, List<String>> componentInstanceExternalRefs = null;
41 testSubject = createTestSubject();
42 testSubject.setComponentInstanceExternalRefs(componentInstanceExternalRefs);
46 public void testAddExternalRef() throws Exception {
47 MapComponentInstanceExternalRefs testSubject;
48 String objectType = "";
53 testSubject = createTestSubject();
54 result = testSubject.addExternalRef(objectType, ref);
58 public void testDeleteExternalRef() throws Exception {
59 MapComponentInstanceExternalRefs testSubject;
60 String objectType = "";
65 testSubject = createTestSubject();
66 result = testSubject.deleteExternalRef(objectType, ref);
70 public void testReplaceExternalRef() throws Exception {
71 MapComponentInstanceExternalRefs testSubject;
72 String objectType = "";
78 testSubject = createTestSubject();
79 result = testSubject.replaceExternalRef(objectType, oldRef, newRef);