Added oparent to sdc main
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / unittests / utils / FactoryUtilsTest.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.unittests.utils;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.dao.graph.datatype.GraphEdge;
25 import org.openecomp.sdc.be.model.*;
26 import org.openecomp.sdc.be.resources.data.*;
27
28 import java.util.List;
29
30 public class FactoryUtilsTest {
31
32 //      private FactoryUtils createTestSubject() {
33 //              return FactoryUtils.Constants;
34 //      }
35
36         
37         @Test
38         public void testCreateVFWithRI() throws Exception {
39                 String riVersion = "";
40                 Resource result;
41
42                 // default test
43                 result = FactoryUtils.createVFWithRI(riVersion);
44         }
45
46         
47         @Test
48         public void testCreateVF() throws Exception {
49                 Resource result;
50
51                 // default test
52                 result = FactoryUtils.createVF();
53         }
54
55         
56         @Test
57         public void testCreateResourceByType() throws Exception {
58                 String resourceType = "";
59                 ResourceMetadataData result;
60
61                 // default test
62                 result = FactoryUtils.createResourceByType(resourceType);
63         }
64
65         
66         @Test
67         public void testAddComponentInstanceToVF() throws Exception {
68                 Resource vf = new Resource();
69                 ComponentInstance resourceInstance = null;
70
71                 // default test
72                 FactoryUtils.addComponentInstanceToVF(vf, resourceInstance);
73         }
74
75         
76         @Test
77         public void testCreateResourceInstance() throws Exception {
78                 ComponentInstance result;
79
80                 // default test
81                 result = FactoryUtils.createResourceInstance();
82         }
83
84         
85         @Test
86         public void testCreateResourceInstanceWithVersion() throws Exception {
87                 String riVersion = "";
88                 ComponentInstance result;
89
90                 // default test
91                 result = FactoryUtils.createResourceInstanceWithVersion(riVersion);
92         }
93
94         
95         @Test
96         public void testCreateCapabilityData() throws Exception {
97                 CapabilityData result;
98
99                 // default test
100                 result = FactoryUtils.createCapabilityData();
101         }
102
103         
104         @Test
105         public void testCreateRequirementData() throws Exception {
106                 RequirementData result;
107
108                 // default test
109                 result = FactoryUtils.createRequirementData();
110         }
111
112         
113         @Test
114         public void testConvertCapabilityDataToCapabilityDefinitionAddProperties() throws Exception {
115                 CapabilityData capData = new CapabilityData();
116                 CapabilityDefinition result;
117
118                 // default test
119                 result = FactoryUtils.convertCapabilityDataToCapabilityDefinitionAddProperties(capData);
120         }
121
122         
123         @Test
124         public void testCreateComponentInstancePropertyList() throws Exception {
125                 List<ComponentInstanceProperty> result;
126
127                 // default test
128                 result = FactoryUtils.createComponentInstancePropertyList();
129         }
130
131         
132         @Test
133         public void testConvertRequirementDataIDToRequirementDefinition() throws Exception {
134                 String reqDataId = "";
135                 RequirementDefinition result;
136
137                 // default test
138                 result = FactoryUtils.convertRequirementDataIDToRequirementDefinition(reqDataId);
139         }
140
141         
142         @Test
143         public void testCreateGraphEdge() throws Exception {
144                 GraphEdge result;
145
146                 // default test
147                 result = FactoryUtils.createGraphEdge();
148         }
149
150         
151         @Test
152         public void testCreateCapabilityInstData() throws Exception {
153                 CapabilityInstData result;
154
155                 // default test
156                 result = FactoryUtils.createCapabilityInstData();
157         }
158
159         
160         @Test
161         public void testCreatePropertyData() throws Exception {
162                 PropertyValueData result;
163
164                 // default test
165                 result = FactoryUtils.createPropertyData();
166         }
167
168         
169         @Test
170         public void testConvertCapabilityDefinitionToCapabilityData() throws Exception {
171                 PropertyDefinition propDef = new PropertyDefinition();
172                 PropertyData result;
173
174                 // default test
175                 result = FactoryUtils.convertCapabilityDefinitionToCapabilityData(propDef);
176         }
177
178         
179         @Test
180         public void testConvertCapabilityDataToCapabilityDefinitionRoot() throws Exception {
181                 CapabilityData capData = new CapabilityData();
182                 CapabilityDefinition result;
183
184                 // default test
185                 result = FactoryUtils.convertCapabilityDataToCapabilityDefinitionRoot(capData);
186         }
187 }