Added oparent to sdc main
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / elements / MapComponentInstanceExternalRefsTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.datatypes.elements;
22
23 import org.junit.Test;
24
25 import java.util.List;
26 import java.util.Map;
27
28 public class MapComponentInstanceExternalRefsTest {
29
30         private MapComponentInstanceExternalRefs createTestSubject() {
31                 return new MapComponentInstanceExternalRefs();
32         }
33
34         @Test
35         public void testGetComponentInstanceExternalRefs() throws Exception {
36                 MapComponentInstanceExternalRefs testSubject;
37                 Map<String, List<String>> result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getComponentInstanceExternalRefs();
42         }
43
44         @Test
45         public void testGetExternalRefsByObjectType() throws Exception {
46                 MapComponentInstanceExternalRefs testSubject;
47                 String objectType = "";
48                 List<String> result;
49
50                 // default test
51                 testSubject = createTestSubject();
52                 result = testSubject.getExternalRefsByObjectType(objectType);
53         }
54
55         @Test
56         public void testSetComponentInstanceExternalRefs() throws Exception {
57                 MapComponentInstanceExternalRefs testSubject;
58                 Map<String, List<String>> componentInstanceExternalRefs = null;
59
60                 // default test
61                 testSubject = createTestSubject();
62                 testSubject.setComponentInstanceExternalRefs(componentInstanceExternalRefs);
63         }
64
65         @Test
66         public void testAddExternalRef() throws Exception {
67                 MapComponentInstanceExternalRefs testSubject;
68                 String objectType = "";
69                 String ref = "";
70                 boolean result;
71
72                 // default test
73                 testSubject = createTestSubject();
74                 result = testSubject.addExternalRef(objectType, ref);
75         }
76
77         @Test
78         public void testDeleteExternalRef() throws Exception {
79                 MapComponentInstanceExternalRefs testSubject;
80                 String objectType = "";
81                 String ref = "";
82                 boolean result;
83
84                 // default test
85                 testSubject = createTestSubject();
86                 result = testSubject.deleteExternalRef(objectType, ref);
87         }
88
89         @Test
90         public void testReplaceExternalRef() throws Exception {
91                 MapComponentInstanceExternalRefs testSubject;
92                 String objectType = "";
93                 String oldRef = "";
94                 String newRef = "";
95                 boolean result;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 result = testSubject.replaceExternalRef(objectType, oldRef, newRef);
100         }
101 }