2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.servlets;
23 import javax.servlet.http.HttpServletRequest;
24 import javax.ws.rs.core.Response;
26 import org.junit.Test;
29 public class ArtifactServletTest {
31 private ArtifactServlet createTestSubject() {
32 return new ArtifactServlet();
37 public void testLoadArtifact() throws Exception {
38 ArtifactServlet testSubject;
39 String resourceId = "";
41 HttpServletRequest request = null;
45 testSubject = createTestSubject();
51 public void testUpdateArtifact() throws Exception {
52 ArtifactServlet testSubject;
53 String resourceId = "";
54 String artifactId = "";
56 HttpServletRequest request = null;
60 testSubject = createTestSubject();
66 public void testDeleteArtifact() throws Exception {
67 ArtifactServlet testSubject;
68 String resourceId = "";
69 String artifactId = "";
70 HttpServletRequest request = null;
74 testSubject = createTestSubject();
80 public void testLoadInformationArtifact() throws Exception {
81 ArtifactServlet testSubject;
82 String serviceId = "";
84 HttpServletRequest request = null;
88 testSubject = createTestSubject();
94 public void testUpdateInformationArtifact() throws Exception {
95 ArtifactServlet testSubject;
96 String serviceId = "";
97 String artifactId = "";
99 HttpServletRequest request = null;
103 testSubject = createTestSubject();
109 public void testUpdateApiArtifact() throws Exception {
110 ArtifactServlet testSubject;
111 String serviceId = "";
112 String artifactId = "";
114 HttpServletRequest request = null;
120 testSubject = createTestSubject();
126 public void testDeleteApiArtifact() throws Exception {
127 ArtifactServlet testSubject;
128 String serviceId = "";
129 String artifactId = "";
130 HttpServletRequest request = null;
136 testSubject = createTestSubject();
142 public void testDeleteInformationalArtifact() throws Exception {
143 ArtifactServlet testSubject;
144 String serviceId = "";
145 String artifactId = "";
146 HttpServletRequest request = null;
150 testSubject = createTestSubject();
156 public void testDownloadServiceArtifactBase64() throws Exception {
157 ArtifactServlet testSubject;
158 String serviceId = "";
159 String artifactId = "";
160 HttpServletRequest request = null;
164 testSubject = createTestSubject();
170 public void testDownloadResourceArtifactBase64() throws Exception {
171 ArtifactServlet testSubject;
172 String resourceId = "";
173 String artifactId = "";
174 HttpServletRequest request = null;
178 testSubject = createTestSubject();
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;
194 testSubject = createTestSubject();
200 public void testLoadArtifactToInterface() throws Exception {
201 ArtifactServlet testSubject;
202 String resourceId = "";
203 String interfaceType = "";
204 String operation = "";
208 HttpServletRequest request = null;
212 testSubject = createTestSubject();
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;
228 testSubject = createTestSubject();
234 public void testUpdateArtifactToInterface() throws Exception {
235 ArtifactServlet testSubject;
236 String resourceId = "";
237 String interfaceType = "";
238 String operation = "";
239 String artifactId = "";
242 HttpServletRequest request = null;
247 testSubject = createTestSubject();
253 public void testUpdateRIArtifact() throws Exception {
254 ArtifactServlet testSubject;
255 String containerComponentType = "";
256 String componentId = "";
257 String componentInstanceId = "";
258 String artifactId = "";
260 HttpServletRequest request = null;
264 testSubject = createTestSubject();
270 public void testUpdateComponentInstanceArtifact() throws Exception {
271 ArtifactServlet testSubject;
274 String containerComponentType = "";
275 String componentId = "";
276 String componentInstanceId = "";
277 String artifactId = "";
279 HttpServletRequest request = null;
283 testSubject = createTestSubject();
289 public void testLoadComponentInstanceArtifact() throws Exception {
290 ArtifactServlet testSubject;
293 String containerComponentType = "";
294 String componentId = "";
295 String componentInstanceId = "";
297 HttpServletRequest request = null;
301 testSubject = createTestSubject();
307 public void testDeleteComponentInstanceArtifact() throws Exception {
308 ArtifactServlet testSubject;
311 String containerComponentType = "";
312 String componentId = "";
313 String componentInstanceId = "";
314 String artifactId = "";
316 HttpServletRequest request = null;
320 testSubject = createTestSubject();
326 public void testGetComponentArtifacts() throws Exception {
327 ArtifactServlet testSubject;
328 String containerComponentType = "";
329 String componentId = "";
330 String artifactGroupType = "";
331 HttpServletRequest request = null;
335 testSubject = createTestSubject();
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;
351 testSubject = createTestSubject();