Catalog alignment
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / ArtifactServletTest.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 org.junit.Test;
24 import org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic;
25 import org.openecomp.sdc.be.impl.ComponentsUtils;
26 import org.openecomp.sdc.be.user.UserBusinessLogic;
27
28 import javax.servlet.http.HttpServletRequest;
29 import javax.ws.rs.core.Response;
30
31 import static org.mockito.Mockito.mock;
32
33
34 public class ArtifactServletTest {
35
36         private ArtifactServlet createTestSubject() {
37                 UserBusinessLogic userBusinessLogic = mock(UserBusinessLogic.class);
38                 ComponentsUtils componentsUtils = mock(ComponentsUtils.class);
39                 ArtifactsBusinessLogic artifactsBusinessLogic = mock(ArtifactsBusinessLogic.class);
40                 return new ArtifactServlet(userBusinessLogic, componentsUtils,artifactsBusinessLogic);
41         }
42
43         
44         @Test
45         public void testLoadArtifact() throws Exception {
46                 ArtifactServlet testSubject;
47                 String resourceId = "";
48                 String data = "";
49                 HttpServletRequest request = null;
50                 Response result;
51
52                 // default test
53                 testSubject = createTestSubject();
54                 
55         }
56
57         
58         @Test
59         public void testUpdateArtifact() throws Exception {
60                 ArtifactServlet testSubject;
61                 String resourceId = "";
62                 String artifactId = "";
63                 String data = "";
64                 HttpServletRequest request = null;
65                 Response result;
66
67                 // default test
68                 testSubject = createTestSubject();
69                 
70         }
71
72         
73         @Test
74         public void testDeleteArtifact() throws Exception {
75                 ArtifactServlet testSubject;
76                 String resourceId = "";
77                 String artifactId = "";
78                 HttpServletRequest request = null;
79                 Response result;
80
81                 // default test
82                 testSubject = createTestSubject();
83                 
84         }
85
86         
87         @Test
88         public void testLoadInformationArtifact() throws Exception {
89                 ArtifactServlet testSubject;
90                 String serviceId = "";
91                 String data = "";
92                 HttpServletRequest request = null;
93                 Response result;
94
95                 // default test
96                 testSubject = createTestSubject();
97                 
98         }
99
100         
101         @Test
102         public void testUpdateInformationArtifact() throws Exception {
103                 ArtifactServlet testSubject;
104                 String serviceId = "";
105                 String artifactId = "";
106                 String data = "";
107                 HttpServletRequest request = null;
108                 Response result;
109
110                 // default test
111                 testSubject = createTestSubject();
112                 
113         }
114
115         
116         @Test
117         public void testUpdateApiArtifact() throws Exception {
118                 ArtifactServlet testSubject;
119                 String serviceId = "";
120                 String artifactId = "";
121                 String data = "";
122                 HttpServletRequest request = null;
123                 String userId = "";
124                 String origMd5 = "";
125                 Response result;
126
127                 // default test
128                 testSubject = createTestSubject();
129                 
130         }
131
132         
133         @Test
134         public void testDeleteApiArtifact() throws Exception {
135                 ArtifactServlet testSubject;
136                 String serviceId = "";
137                 String artifactId = "";
138                 HttpServletRequest request = null;
139                 String userId = "";
140                 String origMd5 = "";
141                 Response result;
142
143                 // default test
144                 testSubject = createTestSubject();
145                 
146         }
147
148         
149         @Test
150         public void testDeleteInformationalArtifact() throws Exception {
151                 ArtifactServlet testSubject;
152                 String serviceId = "";
153                 String artifactId = "";
154                 HttpServletRequest request = null;
155                 Response result;
156
157                 // default test
158                 testSubject = createTestSubject();
159                 
160         }
161
162         
163         @Test
164         public void testDownloadServiceArtifactBase64() throws Exception {
165                 ArtifactServlet testSubject;
166                 String serviceId = "";
167                 String artifactId = "";
168                 HttpServletRequest request = null;
169                 Response result;
170
171                 // default test
172                 testSubject = createTestSubject();
173                 
174         }
175
176         
177         @Test
178         public void testDownloadResourceArtifactBase64() throws Exception {
179                 ArtifactServlet testSubject;
180                 String resourceId = "";
181                 String artifactId = "";
182                 HttpServletRequest request = null;
183                 Response result;
184
185                 // default test
186                 testSubject = createTestSubject();
187                 
188         }
189
190         
191         @Test
192         public void testDownloadResourceInstanceArtifactBase64() throws Exception {
193                 ArtifactServlet testSubject;
194                 String containerComponentType = "";
195                 String componentId = "";
196                 String componentInstanceId = "";
197                 String artifactId = "";
198                 HttpServletRequest request = null;
199                 Response result;
200
201                 // default test
202                 testSubject = createTestSubject();
203                 
204         }
205
206         
207         @Test
208         public void testLoadArtifactToInterface() throws Exception {
209                 ArtifactServlet testSubject;
210                 String resourceId = "";
211                 String interfaceType = "";
212                 String operation = "";
213                 String userId = "";
214                 String origMd5 = "";
215                 String data = "";
216                 HttpServletRequest request = null;
217                 Response result;
218
219                 // default test
220                 testSubject = createTestSubject();
221                 
222         }
223
224         
225         @Test
226         public void testDeleteArtifactToInterface() throws Exception {
227                 ArtifactServlet testSubject;
228                 String resourceId = "";
229                 String interfaceType = "";
230                 String operation = "";
231                 String artifactId = "";
232                 HttpServletRequest request = null;
233                 Response result;
234
235                 // default test
236                 testSubject = createTestSubject();
237                 
238         }
239
240         
241         @Test
242         public void testUpdateArtifactToInterface() throws Exception {
243                 ArtifactServlet testSubject;
244                 String resourceId = "";
245                 String interfaceType = "";
246                 String operation = "";
247                 String artifactId = "";
248                 String userId = "";
249                 String origMd5 = "";
250                 HttpServletRequest request = null;
251                 String data = "";
252                 Response result;
253
254                 // default test
255                 testSubject = createTestSubject();
256                 
257         }
258
259         
260         @Test
261         public void testUpdateRIArtifact() throws Exception {
262                 ArtifactServlet testSubject;
263                 String containerComponentType = "";
264                 String componentId = "";
265                 String componentInstanceId = "";
266                 String artifactId = "";
267                 String data = "";
268                 HttpServletRequest request = null;
269                 Response result;
270
271                 // default test
272                 testSubject = createTestSubject();
273                 
274         }
275
276         
277         @Test
278         public void testUpdateComponentInstanceArtifact() throws Exception {
279                 ArtifactServlet testSubject;
280                 String userId = "";
281                 String origMd5 = "";
282                 String containerComponentType = "";
283                 String componentId = "";
284                 String componentInstanceId = "";
285                 String artifactId = "";
286                 String data = "";
287                 HttpServletRequest request = null;
288                 Response result;
289
290                 // default test
291                 testSubject = createTestSubject();
292                 
293         }
294
295         
296         @Test
297         public void testLoadComponentInstanceArtifact() throws Exception {
298                 ArtifactServlet testSubject;
299                 String userId = "";
300                 String origMd5 = "";
301                 String containerComponentType = "";
302                 String componentId = "";
303                 String componentInstanceId = "";
304                 String data = "";
305                 HttpServletRequest request = null;
306                 Response result;
307
308                 // default test
309                 testSubject = createTestSubject();
310                 
311         }
312
313         
314         @Test
315         public void testDeleteComponentInstanceArtifact() throws Exception {
316                 ArtifactServlet testSubject;
317                 String userId = "";
318                 String origMd5 = "";
319                 String containerComponentType = "";
320                 String componentId = "";
321                 String componentInstanceId = "";
322                 String artifactId = "";
323                 String data = "";
324                 HttpServletRequest request = null;
325                 Response result;
326
327                 // default test
328                 testSubject = createTestSubject();
329                 
330         }
331
332         
333         @Test
334         public void testGetComponentArtifacts() throws Exception {
335                 ArtifactServlet testSubject;
336                 String containerComponentType = "";
337                 String componentId = "";
338                 String artifactGroupType = "";
339                 HttpServletRequest request = null;
340                 Response result;
341
342                 // default test
343                 testSubject = createTestSubject();
344                 
345         }
346
347         
348         @Test
349         public void testGetComponentInstanceArtifacts() throws Exception {
350                 ArtifactServlet testSubject;
351                 String containerComponentType = "";
352                 String componentId = "";
353                 String componentInstanceId = "";
354                 String artifactGroupType = "";
355                 HttpServletRequest request = null;
356                 Response result;
357
358                 // default test
359                 testSubject = createTestSubject();
360                 
361         }
362
363         
364
365 }