Added oparent to sdc main
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ComponentInstanceInputTest.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.model;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
25 import org.openecomp.sdc.be.datatypes.elements.PropertyRule;
26
27 import java.util.List;
28
29
30 public class ComponentInstanceInputTest {
31
32         private ComponentInstanceInput createTestSubject() {
33                 return new ComponentInstanceInput();
34         }
35
36         @Test
37         public void testCtor() throws Exception {
38                 new ComponentInstanceInput(new PropertyDataDefinition());
39                 new ComponentInstanceInput(new InputDefinition(), "mock", "mock");
40                 new ComponentInstanceInput(new PropertyDataDefinition(), "mock", "mock", "mock");
41         }
42         
43         @Test
44         public void testGetComponentInstanceName() throws Exception {
45                 ComponentInstanceInput testSubject;
46                 String result;
47
48                 // default test
49                 testSubject = createTestSubject();
50                 result = testSubject.getComponentInstanceName();
51         }
52
53         
54         @Test
55         public void testSetComponentInstanceName() throws Exception {
56                 ComponentInstanceInput testSubject;
57                 String componentInstanceName = "";
58
59                 // default test
60                 testSubject = createTestSubject();
61                 testSubject.setComponentInstanceName(componentInstanceName);
62         }
63
64         
65         @Test
66         public void testGetComponentInstanceId() throws Exception {
67                 ComponentInstanceInput testSubject;
68                 String result;
69
70                 // default test
71                 testSubject = createTestSubject();
72                 result = testSubject.getComponentInstanceId();
73         }
74
75         
76         @Test
77         public void testSetComponentInstanceId() throws Exception {
78                 ComponentInstanceInput testSubject;
79                 String componentInstanceId = "";
80
81                 // default test
82                 testSubject = createTestSubject();
83                 testSubject.setComponentInstanceId(componentInstanceId);
84         }
85
86         
87         @Test
88         public void testGetValueUniqueUid() throws Exception {
89                 ComponentInstanceInput testSubject;
90                 String result;
91
92                 // default test
93                 testSubject = createTestSubject();
94                 result = testSubject.getValueUniqueUid();
95         }
96
97         
98         @Test
99         public void testSetValueUniqueUid() throws Exception {
100                 ComponentInstanceInput testSubject;
101                 String valueUniqueUid = "";
102
103                 // default test
104                 testSubject = createTestSubject();
105                 testSubject.setValueUniqueUid(valueUniqueUid);
106         }
107
108         
109         @Test
110         public void testGetPath() throws Exception {
111                 ComponentInstanceInput testSubject;
112                 List<String> result;
113
114                 // default test
115                 testSubject = createTestSubject();
116                 result = testSubject.getPath();
117         }
118
119         
120         @Test
121         public void testSetPath() throws Exception {
122                 ComponentInstanceInput testSubject;
123                 List<String> path = null;
124
125                 // default test
126                 testSubject = createTestSubject();
127                 testSubject.setPath(path);
128         }
129
130         
131         @Test
132         public void testGetRules() throws Exception {
133                 ComponentInstanceInput testSubject;
134                 List<PropertyRule> result;
135
136                 // default test
137                 testSubject = createTestSubject();
138                 result = testSubject.getRules();
139         }
140
141         
142         @Test
143         public void testSetRules() throws Exception {
144                 ComponentInstanceInput testSubject;
145                 List<PropertyRule> rules = null;
146
147                 // default test
148                 testSubject = createTestSubject();
149                 testSubject.setRules(rules);
150         }
151
152         
153         @Test
154         public void testToString() throws Exception {
155                 ComponentInstanceInput testSubject;
156                 String result;
157
158                 // default test
159                 testSubject = createTestSubject();
160                 result = testSubject.toString();
161         }
162 }