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