ac17e2bf6b37133d1d52d0bb35e56af318bd8478
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / ElementServletTest.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.servlets;
22
23 import static org.mockito.Mockito.mock;
24
25 import java.util.List;
26
27 import javax.servlet.http.HttpServletRequest;
28 import javax.ws.rs.core.Response;
29
30 import org.junit.Test;
31 import org.openecomp.sdc.be.components.impl.ComponentInstanceBusinessLogic;
32 import org.openecomp.sdc.be.components.impl.ConsumerBusinessLogic;
33 import org.openecomp.sdc.be.components.impl.ElementBusinessLogic;
34 import org.openecomp.sdc.be.components.impl.GroupBusinessLogic;
35 import org.openecomp.sdc.be.components.scheduledtasks.ComponentsCleanBusinessLogic;
36 import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
37 import org.openecomp.sdc.be.impl.ComponentsUtils;
38 import org.openecomp.sdc.be.user.UserBusinessLogic;
39
40 public class ElementServletTest {
41
42         private ElementServlet createTestSubject() {
43                 UserBusinessLogic userBusinessLogic = mock(UserBusinessLogic.class);
44                 ComponentsUtils componentsUtils = mock(ComponentsUtils.class);
45                 ComponentsCleanBusinessLogic componentsCleanBusinessLogic = mock(ComponentsCleanBusinessLogic.class);
46                 ElementBusinessLogic elementBusinessLogic = mock(ElementBusinessLogic.class);
47                 return new ElementServlet(userBusinessLogic, componentsUtils, componentsCleanBusinessLogic, elementBusinessLogic);
48         }
49
50         
51         @Test
52         public void testGetComponentCategories() throws Exception {
53                 ElementServlet testSubject;
54                 String componentType = "";
55                 String userId = "";
56                 HttpServletRequest request = null;
57                 Response result;
58
59                 // default test
60                 testSubject = createTestSubject();
61                 
62         }
63
64         
65         @Test
66         public void testGetAllCategories() throws Exception {
67                 ElementServlet testSubject;
68                 HttpServletRequest request = null;
69                 String userId = "";
70                 Response result;
71
72                 // default test
73                 testSubject = createTestSubject();
74                 
75         }
76
77         
78         @Test
79         public void testCreateComponentCategory() throws Exception {
80                 ElementServlet testSubject;
81                 String componentType = "";
82                 String data = "";
83                 HttpServletRequest request = null;
84                 String userId = "";
85                 Response result;
86
87                 // default test
88                 testSubject = createTestSubject();
89                 
90         }
91
92         
93         @Test
94         public void testDeleteComponentCategory() throws Exception {
95                 ElementServlet testSubject;
96                 String categoryUniqueId = "";
97                 String componentType = "";
98                 HttpServletRequest request = null;
99                 String userId = "";
100                 Response result;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 
105         }
106
107         
108         @Test
109         public void testCreateComponentSubCategory() throws Exception {
110                 ElementServlet testSubject;
111                 String componentType = "";
112                 String categoryId = "";
113                 String data = "";
114                 HttpServletRequest request = null;
115                 String userId = "";
116                 Response result;
117
118                 // default test
119                 testSubject = createTestSubject();
120                 
121         }
122
123         
124         @Test
125         public void testDeleteComponentSubCategory() throws Exception {
126                 ElementServlet testSubject;
127                 String categoryUniqueId = "";
128                 String subCategoryUniqueId = "";
129                 String componentType = "";
130                 HttpServletRequest request = null;
131                 String userId = "";
132                 Response result;
133
134                 // default test
135                 testSubject = createTestSubject();
136                 
137         }
138
139         
140         @Test
141         public void testCreateComponentGrouping() throws Exception {
142                 ElementServlet testSubject;
143                 String componentType = "";
144                 String grandParentCategoryId = "";
145                 String parentSubCategoryId = "";
146                 String data = "";
147                 HttpServletRequest request = null;
148                 String userId = "";
149                 Response result;
150
151                 // default test
152                 testSubject = createTestSubject();
153                 
154         }
155
156         
157         @Test
158         public void testDeleteComponentGrouping() throws Exception {
159                 ElementServlet testSubject;
160                 String grandParentCategoryUniqueId = "";
161                 String parentSubCategoryUniqueId = "";
162                 String groupingUniqueId = "";
163                 String componentType = "";
164                 HttpServletRequest request = null;
165                 String userId = "";
166                 Response result;
167
168                 // default test
169                 testSubject = createTestSubject();
170                 
171         }
172
173         
174         @Test
175         public void testGetTags() throws Exception {
176                 ElementServlet testSubject;
177                 HttpServletRequest request = null;
178                 String userId = "";
179                 Response result;
180
181                 // default test
182                 testSubject = createTestSubject();
183                 
184         }
185
186         
187         @Test
188         public void testGetPropertyScopes() throws Exception {
189                 ElementServlet testSubject;
190                 HttpServletRequest request = null;
191                 String userId = "";
192                 Response result;
193
194                 // default test
195                 testSubject = createTestSubject();
196                 
197         }
198
199         
200         @Test
201         public void testGetArtifactTypes() throws Exception {
202                 ElementServlet testSubject;
203                 HttpServletRequest request = null;
204                 String userId = "";
205                 Response result;
206
207                 // default test
208                 testSubject = createTestSubject();
209                 
210         }
211
212         
213         @Test
214         public void testGetConfiguration() throws Exception {
215                 ElementServlet testSubject;
216                 HttpServletRequest request = null;
217                 String userId = "";
218                 Response result;
219
220                 // default test
221                 testSubject = createTestSubject();
222                 
223         }
224
225         
226         @Test
227         public void testGetFollowedResourcesServices() throws Exception {
228                 ElementServlet testSubject;
229                 HttpServletRequest request = null;
230                 String userId = "";
231                 Response result;
232
233                 // default test
234                 testSubject = createTestSubject();
235                 
236         }
237
238         
239         @Test
240         public void testGetCatalogComponents() throws Exception {
241                 ElementServlet testSubject;
242                 HttpServletRequest request = null;
243                 String userId = "";
244                 List<OriginTypeEnum> excludeTypes = null;
245                 Response result;
246
247                 // default test
248                 testSubject = createTestSubject();
249                 
250         }
251
252         
253         @Test
254         public void testDeleteMarkedResources() throws Exception {
255                 ElementServlet testSubject;
256                 String componentType = "";
257                 HttpServletRequest request = null;
258                 Response result;
259
260                 // default test
261                 testSubject = createTestSubject();
262                 
263         }
264
265         
266         @Test
267         public void testGetListOfCsars() throws Exception {
268                 ElementServlet testSubject;
269                 HttpServletRequest request = null;
270                 Response result;
271
272                 // default test
273                 testSubject = createTestSubject();
274                 
275         }
276 }