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