re base code
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / elements / MapComponentInstanceExternalRefsTest.java
1 package org.openecomp.sdc.be.datatypes.elements;
2
3 import org.junit.Test;
4
5 import java.util.List;
6 import java.util.Map;
7
8 public class MapComponentInstanceExternalRefsTest {
9
10         private MapComponentInstanceExternalRefs createTestSubject() {
11                 return new MapComponentInstanceExternalRefs();
12         }
13
14         @Test
15         public void testGetComponentInstanceExternalRefs() throws Exception {
16                 MapComponentInstanceExternalRefs testSubject;
17                 Map<String, List<String>> result;
18
19                 // default test
20                 testSubject = createTestSubject();
21                 result = testSubject.getComponentInstanceExternalRefs();
22         }
23
24         @Test
25         public void testGetExternalRefsByObjectType() throws Exception {
26                 MapComponentInstanceExternalRefs testSubject;
27                 String objectType = "";
28                 List<String> result;
29
30                 // default test
31                 testSubject = createTestSubject();
32                 result = testSubject.getExternalRefsByObjectType(objectType);
33         }
34
35         @Test
36         public void testSetComponentInstanceExternalRefs() throws Exception {
37                 MapComponentInstanceExternalRefs testSubject;
38                 Map<String, List<String>> componentInstanceExternalRefs = null;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 testSubject.setComponentInstanceExternalRefs(componentInstanceExternalRefs);
43         }
44
45         @Test
46         public void testAddExternalRef() throws Exception {
47                 MapComponentInstanceExternalRefs testSubject;
48                 String objectType = "";
49                 String ref = "";
50                 boolean result;
51
52                 // default test
53                 testSubject = createTestSubject();
54                 result = testSubject.addExternalRef(objectType, ref);
55         }
56
57         @Test
58         public void testDeleteExternalRef() throws Exception {
59                 MapComponentInstanceExternalRefs testSubject;
60                 String objectType = "";
61                 String ref = "";
62                 boolean result;
63
64                 // default test
65                 testSubject = createTestSubject();
66                 result = testSubject.deleteExternalRef(objectType, ref);
67         }
68
69         @Test
70         public void testReplaceExternalRef() throws Exception {
71                 MapComponentInstanceExternalRefs testSubject;
72                 String objectType = "";
73                 String oldRef = "";
74                 String newRef = "";
75                 boolean result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.replaceExternalRef(objectType, oldRef, newRef);
80         }
81 }