1 package org.openecomp.sdc.be.servlets;
3 import javax.servlet.http.HttpServletRequest;
4 import javax.ws.rs.core.Response;
9 public class ArtifactServletTest {
11 private ArtifactServlet createTestSubject() {
12 return new ArtifactServlet();
17 public void testLoadArtifact() throws Exception {
18 ArtifactServlet testSubject;
19 String resourceId = "";
21 HttpServletRequest request = null;
25 testSubject = createTestSubject();
31 public void testUpdateArtifact() throws Exception {
32 ArtifactServlet testSubject;
33 String resourceId = "";
34 String artifactId = "";
36 HttpServletRequest request = null;
40 testSubject = createTestSubject();
46 public void testDeleteArtifact() throws Exception {
47 ArtifactServlet testSubject;
48 String resourceId = "";
49 String artifactId = "";
50 HttpServletRequest request = null;
54 testSubject = createTestSubject();
60 public void testLoadInformationArtifact() throws Exception {
61 ArtifactServlet testSubject;
62 String serviceId = "";
64 HttpServletRequest request = null;
68 testSubject = createTestSubject();
74 public void testUpdateInformationArtifact() throws Exception {
75 ArtifactServlet testSubject;
76 String serviceId = "";
77 String artifactId = "";
79 HttpServletRequest request = null;
83 testSubject = createTestSubject();
89 public void testUpdateApiArtifact() throws Exception {
90 ArtifactServlet testSubject;
91 String serviceId = "";
92 String artifactId = "";
94 HttpServletRequest request = null;
100 testSubject = createTestSubject();
106 public void testDeleteApiArtifact() throws Exception {
107 ArtifactServlet testSubject;
108 String serviceId = "";
109 String artifactId = "";
110 HttpServletRequest request = null;
116 testSubject = createTestSubject();
122 public void testDeleteInformationalArtifact() throws Exception {
123 ArtifactServlet testSubject;
124 String serviceId = "";
125 String artifactId = "";
126 HttpServletRequest request = null;
130 testSubject = createTestSubject();
136 public void testDownloadServiceArtifactBase64() throws Exception {
137 ArtifactServlet testSubject;
138 String serviceId = "";
139 String artifactId = "";
140 HttpServletRequest request = null;
144 testSubject = createTestSubject();
150 public void testDownloadResourceArtifactBase64() throws Exception {
151 ArtifactServlet testSubject;
152 String resourceId = "";
153 String artifactId = "";
154 HttpServletRequest request = null;
158 testSubject = createTestSubject();
164 public void testDownloadResourceInstanceArtifactBase64() throws Exception {
165 ArtifactServlet testSubject;
166 String containerComponentType = "";
167 String componentId = "";
168 String componentInstanceId = "";
169 String artifactId = "";
170 HttpServletRequest request = null;
174 testSubject = createTestSubject();
180 public void testLoadArtifactToInterface() throws Exception {
181 ArtifactServlet testSubject;
182 String resourceId = "";
183 String interfaceType = "";
184 String operation = "";
188 HttpServletRequest request = null;
192 testSubject = createTestSubject();
198 public void testDeleteArtifactToInterface() throws Exception {
199 ArtifactServlet testSubject;
200 String resourceId = "";
201 String interfaceType = "";
202 String operation = "";
203 String artifactId = "";
204 HttpServletRequest request = null;
208 testSubject = createTestSubject();
214 public void testUpdateArtifactToInterface() throws Exception {
215 ArtifactServlet testSubject;
216 String resourceId = "";
217 String interfaceType = "";
218 String operation = "";
219 String artifactId = "";
222 HttpServletRequest request = null;
227 testSubject = createTestSubject();
233 public void testUpdateRIArtifact() throws Exception {
234 ArtifactServlet testSubject;
235 String containerComponentType = "";
236 String componentId = "";
237 String componentInstanceId = "";
238 String artifactId = "";
240 HttpServletRequest request = null;
244 testSubject = createTestSubject();
250 public void testUpdateComponentInstanceArtifact() throws Exception {
251 ArtifactServlet testSubject;
254 String containerComponentType = "";
255 String componentId = "";
256 String componentInstanceId = "";
257 String artifactId = "";
259 HttpServletRequest request = null;
263 testSubject = createTestSubject();
269 public void testLoadComponentInstanceArtifact() throws Exception {
270 ArtifactServlet testSubject;
273 String containerComponentType = "";
274 String componentId = "";
275 String componentInstanceId = "";
277 HttpServletRequest request = null;
281 testSubject = createTestSubject();
287 public void testDeleteComponentInstanceArtifact() throws Exception {
288 ArtifactServlet testSubject;
291 String containerComponentType = "";
292 String componentId = "";
293 String componentInstanceId = "";
294 String artifactId = "";
296 HttpServletRequest request = null;
300 testSubject = createTestSubject();
306 public void testGetComponentArtifacts() throws Exception {
307 ArtifactServlet testSubject;
308 String containerComponentType = "";
309 String componentId = "";
310 String artifactGroupType = "";
311 HttpServletRequest request = null;
315 testSubject = createTestSubject();
321 public void testGetComponentInstanceArtifacts() throws Exception {
322 ArtifactServlet testSubject;
323 String containerComponentType = "";
324 String componentId = "";
325 String componentInstanceId = "";
326 String artifactGroupType = "";
327 HttpServletRequest request = null;
331 testSubject = createTestSubject();