Refactoring Consolidation Service
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / components / impl / ElementBusinessLogicTest.java
1 package org.openecomp.sdc.be.components.impl;
2
3 import java.util.List;
4 import java.util.Map;
5
6 import org.junit.Test;
7 import org.openecomp.sdc.be.dao.api.ActionStatus;
8 import org.openecomp.sdc.be.datatypes.enums.FilterKeyEnum;
9 import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
10 import org.openecomp.sdc.be.model.ArtifactType;
11 import org.openecomp.sdc.be.model.Component;
12 import org.openecomp.sdc.be.model.PropertyScope;
13 import org.openecomp.sdc.be.model.User;
14 import org.openecomp.sdc.be.model.category.CategoryDefinition;
15 import org.openecomp.sdc.be.model.category.GroupingDefinition;
16 import org.openecomp.sdc.be.model.category.SubCategoryDefinition;
17 import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
18 import org.openecomp.sdc.be.ui.model.UiCategories;
19 import org.openecomp.sdc.exception.ResponseFormat;
20
21 import fj.data.Either;
22
23
24 public class ElementBusinessLogicTest {
25
26         private ElementBusinessLogic createTestSubject() {
27                 return new ElementBusinessLogic();
28         }
29
30         
31         @Test
32         public void testGetFollowed() throws Exception {
33                 ElementBusinessLogic testSubject;
34                 User user = null;
35                 Either<Map<String, List<? extends Component>>, ResponseFormat> result;
36
37                 // default test
38                 testSubject = createTestSubject();
39         }
40
41         
42         
43         
44         @Test
45         public void testGetAllResourceCategories() throws Exception {
46                 ElementBusinessLogic testSubject;
47                 Either<List<CategoryDefinition>, ActionStatus> result;
48
49                 // default test
50                 testSubject = createTestSubject();
51         }
52
53         
54         @Test
55         public void testGetAllServiceCategories() throws Exception {
56                 ElementBusinessLogic testSubject;
57                 Either<List<CategoryDefinition>, ActionStatus> result;
58
59                 // default test
60                 testSubject = createTestSubject();
61         }
62
63         
64         @Test
65         public void testCreateCategory() throws Exception {
66                 ElementBusinessLogic testSubject;
67                 CategoryDefinition category = null;
68                 String componentTypeParamName = "";
69                 String userId = "";
70                 Either<CategoryDefinition, ResponseFormat> result;
71
72                 // test 1
73                 testSubject = createTestSubject();
74                 category = null;
75         }
76
77         
78         @Test
79         public void testCreateSubCategory() throws Exception {
80                 ElementBusinessLogic testSubject;
81                 SubCategoryDefinition subCategory = null;
82                 String componentTypeParamName = "";
83                 String parentCategoryId = "";
84                 String userId = "";
85                 Either<SubCategoryDefinition, ResponseFormat> result;
86
87                 // test 1
88                 testSubject = createTestSubject();
89                 subCategory = null;
90         }
91
92         
93         @Test
94         public void testCreateGrouping() throws Exception {
95                 ElementBusinessLogic testSubject;
96                 GroupingDefinition grouping = null;
97                 String componentTypeParamName = "";
98                 String grandParentCategoryId = "";
99                 String parentSubCategoryId = "";
100                 String userId = "";
101                 Either<GroupingDefinition, ResponseFormat> result;
102
103                 // test 1
104                 testSubject = createTestSubject();
105                 grouping = null;
106         }
107
108         
109         @Test
110         public void testGetAllCategories() throws Exception {
111                 ElementBusinessLogic testSubject;
112                 String componentType = "";
113                 String userId = "";
114                 Either<List<CategoryDefinition>, ResponseFormat> result;
115
116                 // test 1
117                 testSubject = createTestSubject();
118                 userId = null;
119
120                 // test 2
121                 testSubject = createTestSubject();
122                 userId = "";
123         }
124
125         
126         @Test
127         public void testGetAllCategories_1() throws Exception {
128                 ElementBusinessLogic testSubject;
129                 String userId = "";
130                 Either<UiCategories, ResponseFormat> result;
131
132                 // default test
133                 testSubject = createTestSubject();
134         }
135
136         
137         @Test
138         public void testDeleteCategory() throws Exception {
139                 ElementBusinessLogic testSubject;
140                 String categoryId = "";
141                 String componentTypeParamName = "";
142                 String userId = "";
143                 Either<CategoryDefinition, ResponseFormat> result;
144
145                 // default test
146                 testSubject = createTestSubject();
147         }
148
149         
150         @Test
151         public void testDeleteSubCategory() throws Exception {
152                 ElementBusinessLogic testSubject;
153                 String grandParentCategoryId = "";
154                 String parentSubCategoryId = "";
155                 String componentTypeParamName = "";
156                 String userId = "";
157                 Either<SubCategoryDefinition, ResponseFormat> result;
158
159                 // default test
160                 testSubject = createTestSubject();
161         }
162
163         
164         @Test
165         public void testDeleteGrouping() throws Exception {
166                 ElementBusinessLogic testSubject;
167                 String grandParentCategoryId = "";
168                 String parentSubCategoryId = "";
169                 String groupingId = "";
170                 String componentTypeParamName = "";
171                 String userId = "";
172                 Either<GroupingDefinition, ResponseFormat> result;
173
174                 // default test
175                 testSubject = createTestSubject();
176         }
177
178         
179
180         
181         @Test
182         public void testGetAllPropertyScopes() throws Exception {
183                 ElementBusinessLogic testSubject;
184                 String userId = "";
185                 Either<List<PropertyScope>, ActionStatus> result;
186
187                 // default test
188                 testSubject = createTestSubject();
189         }
190
191         
192         @Test
193         public void testGetAllArtifactTypes() throws Exception {
194                 ElementBusinessLogic testSubject;
195                 String userId = "";
196                 Either<List<ArtifactType>, ActionStatus> result;
197
198                 // default test
199                 testSubject = createTestSubject();
200         }
201
202         
203         @Test
204         public void testGetAllDeploymentArtifactTypes() throws Exception {
205                 ElementBusinessLogic testSubject;
206                 Either<Map<String, Object>, ActionStatus> result;
207
208                 // default test
209                 testSubject = createTestSubject();
210         }
211
212         
213         @Test
214         public void testGetDefaultHeatTimeout() throws Exception {
215                 ElementBusinessLogic testSubject;
216                 Either<Integer, ActionStatus> result;
217
218                 // default test
219                 testSubject = createTestSubject();
220         }
221
222         
223         @Test
224         public void testGetCatalogComponents() throws Exception {
225                 ElementBusinessLogic testSubject;
226                 String userId = "";
227                 List<OriginTypeEnum> excludeTypes = null;
228                 Either<Map<String, List<? extends Component>>, ResponseFormat> result;
229
230                 // default test
231                 testSubject = createTestSubject();
232         }
233
234         
235         @Test
236         public void testGetFilteredCatalogComponents() throws Exception {
237                 ElementBusinessLogic testSubject;
238                 String assetType = "";
239                 Map<FilterKeyEnum, String> filters = null;
240                 String query = "";
241                 Either<List<? extends Component>, ResponseFormat> result;
242
243                 // test 1
244                 testSubject = createTestSubject();
245                 query = null;
246
247                 // test 2
248                 testSubject = createTestSubject();
249                 query = "";
250
251                 // test 3
252                 testSubject = createTestSubject();
253                 filters = null;
254         }
255
256         
257         
258         
259         @Test
260         public void testGetCatalogComponentsByUuidAndAssetType() throws Exception {
261                 ElementBusinessLogic testSubject;
262                 String assetType = "";
263                 String uuid = "";
264                 Either<List<? extends Component>, ResponseFormat> result;
265
266                 // test 1
267                 testSubject = createTestSubject();
268                 assetType = null;
269
270                 // test 2
271                 testSubject = createTestSubject();
272                 assetType = "";
273
274                 // test 3
275                 testSubject = createTestSubject();
276                 assetType = null;
277
278                 // test 4
279                 testSubject = createTestSubject();
280                 assetType = "";
281         }
282
283         
284         @Test
285         public void testGetAllComponentTypesParamNames() throws Exception {
286                 ElementBusinessLogic testSubject;
287                 List<String> result;
288
289                 // default test
290                 testSubject = createTestSubject();
291                 result = testSubject.getAllComponentTypesParamNames();
292         }
293
294         
295         @Test
296         public void testGetAllSupportedRoles() throws Exception {
297                 ElementBusinessLogic testSubject;
298                 List<String> result;
299
300                 // default test
301                 testSubject = createTestSubject();
302                 result = testSubject.getAllSupportedRoles();
303         }
304
305         
306         @Test
307         public void testGetResourceTypesMap() throws Exception {
308                 ElementBusinessLogic testSubject;
309                 Either<Map<String, String>, ActionStatus> result;
310
311                 // default test
312                 testSubject = createTestSubject();
313         }
314
315         
316         
317
318         
319         @Test
320         public void testGetFilteredResouces() throws Exception {
321                 ElementBusinessLogic testSubject;
322                 Map<FilterKeyEnum, String> filters = null;
323                 boolean inTransaction = false;
324                 Either<List<Component>, StorageOperationStatus> result;
325
326                 // default test
327                 testSubject = createTestSubject();
328         }
329
330         
331
332 }