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 java.util.List;
25 import javax.servlet.http.HttpServletRequest;
26 import javax.ws.rs.core.Response;
28 import org.junit.Test;
29 import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
31 public class ElementServletTest {
33 private ElementServlet createTestSubject() {
34 return new ElementServlet();
39 public void testGetComponentCategories() throws Exception {
40 ElementServlet testSubject;
41 String componentType = "";
43 HttpServletRequest request = null;
47 testSubject = createTestSubject();
53 public void testGetAllCategories() throws Exception {
54 ElementServlet testSubject;
55 HttpServletRequest request = null;
60 testSubject = createTestSubject();
66 public void testCreateComponentCategory() throws Exception {
67 ElementServlet testSubject;
68 String componentType = "";
70 HttpServletRequest request = null;
75 testSubject = createTestSubject();
81 public void testDeleteComponentCategory() throws Exception {
82 ElementServlet testSubject;
83 String categoryUniqueId = "";
84 String componentType = "";
85 HttpServletRequest request = null;
90 testSubject = createTestSubject();
96 public void testCreateComponentSubCategory() throws Exception {
97 ElementServlet testSubject;
98 String componentType = "";
99 String categoryId = "";
101 HttpServletRequest request = null;
106 testSubject = createTestSubject();
112 public void testDeleteComponentSubCategory() throws Exception {
113 ElementServlet testSubject;
114 String categoryUniqueId = "";
115 String subCategoryUniqueId = "";
116 String componentType = "";
117 HttpServletRequest request = null;
122 testSubject = createTestSubject();
128 public void testCreateComponentGrouping() throws Exception {
129 ElementServlet testSubject;
130 String componentType = "";
131 String grandParentCategoryId = "";
132 String parentSubCategoryId = "";
134 HttpServletRequest request = null;
139 testSubject = createTestSubject();
145 public void testDeleteComponentGrouping() throws Exception {
146 ElementServlet testSubject;
147 String grandParentCategoryUniqueId = "";
148 String parentSubCategoryUniqueId = "";
149 String groupingUniqueId = "";
150 String componentType = "";
151 HttpServletRequest request = null;
156 testSubject = createTestSubject();
162 public void testGetTags() throws Exception {
163 ElementServlet testSubject;
164 HttpServletRequest request = null;
169 testSubject = createTestSubject();
175 public void testGetPropertyScopes() throws Exception {
176 ElementServlet testSubject;
177 HttpServletRequest request = null;
182 testSubject = createTestSubject();
188 public void testGetArtifactTypes() throws Exception {
189 ElementServlet testSubject;
190 HttpServletRequest request = null;
195 testSubject = createTestSubject();
201 public void testGetConfiguration() throws Exception {
202 ElementServlet testSubject;
203 HttpServletRequest request = null;
208 testSubject = createTestSubject();
214 public void testGetFollowedResourcesServices() throws Exception {
215 ElementServlet testSubject;
216 HttpServletRequest request = null;
221 testSubject = createTestSubject();
227 public void testGetCatalogComponents() throws Exception {
228 ElementServlet testSubject;
229 HttpServletRequest request = null;
231 List<OriginTypeEnum> excludeTypes = null;
235 testSubject = createTestSubject();
241 public void testDeleteMarkedResources() throws Exception {
242 ElementServlet testSubject;
243 String componentType = "";
244 HttpServletRequest request = null;
248 testSubject = createTestSubject();
254 public void testGetListOfCsars() throws Exception {
255 ElementServlet testSubject;
256 HttpServletRequest request = null;
260 testSubject = createTestSubject();