1 package org.openecomp.sdc.be.servlets;
5 import javax.servlet.http.HttpServletRequest;
6 import javax.ws.rs.core.Response;
9 import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
11 public class ElementServletTest {
13 private ElementServlet createTestSubject() {
14 return new ElementServlet();
19 public void testGetComponentCategories() throws Exception {
20 ElementServlet testSubject;
21 String componentType = "";
23 HttpServletRequest request = null;
27 testSubject = createTestSubject();
33 public void testGetAllCategories() throws Exception {
34 ElementServlet testSubject;
35 HttpServletRequest request = null;
40 testSubject = createTestSubject();
46 public void testCreateComponentCategory() throws Exception {
47 ElementServlet testSubject;
48 String componentType = "";
50 HttpServletRequest request = null;
55 testSubject = createTestSubject();
61 public void testDeleteComponentCategory() throws Exception {
62 ElementServlet testSubject;
63 String categoryUniqueId = "";
64 String componentType = "";
65 HttpServletRequest request = null;
70 testSubject = createTestSubject();
76 public void testCreateComponentSubCategory() throws Exception {
77 ElementServlet testSubject;
78 String componentType = "";
79 String categoryId = "";
81 HttpServletRequest request = null;
86 testSubject = createTestSubject();
92 public void testDeleteComponentSubCategory() throws Exception {
93 ElementServlet testSubject;
94 String categoryUniqueId = "";
95 String subCategoryUniqueId = "";
96 String componentType = "";
97 HttpServletRequest request = null;
102 testSubject = createTestSubject();
108 public void testCreateComponentGrouping() throws Exception {
109 ElementServlet testSubject;
110 String componentType = "";
111 String grandParentCategoryId = "";
112 String parentSubCategoryId = "";
114 HttpServletRequest request = null;
119 testSubject = createTestSubject();
125 public void testDeleteComponentGrouping() throws Exception {
126 ElementServlet testSubject;
127 String grandParentCategoryUniqueId = "";
128 String parentSubCategoryUniqueId = "";
129 String groupingUniqueId = "";
130 String componentType = "";
131 HttpServletRequest request = null;
136 testSubject = createTestSubject();
142 public void testGetTags() throws Exception {
143 ElementServlet testSubject;
144 HttpServletRequest request = null;
149 testSubject = createTestSubject();
155 public void testGetPropertyScopes() throws Exception {
156 ElementServlet testSubject;
157 HttpServletRequest request = null;
162 testSubject = createTestSubject();
168 public void testGetArtifactTypes() throws Exception {
169 ElementServlet testSubject;
170 HttpServletRequest request = null;
175 testSubject = createTestSubject();
181 public void testGetConfiguration() throws Exception {
182 ElementServlet testSubject;
183 HttpServletRequest request = null;
188 testSubject = createTestSubject();
194 public void testGetFollowedResourcesServices() throws Exception {
195 ElementServlet testSubject;
196 HttpServletRequest request = null;
201 testSubject = createTestSubject();
207 public void testGetCatalogComponents() throws Exception {
208 ElementServlet testSubject;
209 HttpServletRequest request = null;
211 List<OriginTypeEnum> excludeTypes = null;
215 testSubject = createTestSubject();
221 public void testDeleteMarkedResources() throws Exception {
222 ElementServlet testSubject;
223 String componentType = "";
224 HttpServletRequest request = null;
228 testSubject = createTestSubject();
234 public void testGetListOfCsars() throws Exception {
235 ElementServlet testSubject;
236 HttpServletRequest request = null;
240 testSubject = createTestSubject();