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 static org.mockito.Mockito.mock;
25 import javax.servlet.http.HttpServletRequest;
26 import javax.ws.rs.core.Response;
27 import org.junit.Test;
28 import org.openecomp.sdc.be.components.impl.AdditionalInformationBusinessLogic;
29 import org.openecomp.sdc.be.impl.ComponentsUtils;
30 import org.openecomp.sdc.be.user.UserBusinessLogic;
33 public class AdditionalInformationServletTest {
35 private AdditionalInformationServlet createTestSubject() {
36 UserBusinessLogic userBusinessLogic = mock(UserBusinessLogic.class);
37 ComponentsUtils componentsUtils = mock(ComponentsUtils.class);
38 AdditionalInformationBusinessLogic additionalInformationBusinessLogic =
39 mock(AdditionalInformationBusinessLogic.class);
40 return new AdditionalInformationServlet(componentsUtils,
41 additionalInformationBusinessLogic);
46 public void testCreateResourceAdditionalInformationLabel() throws Exception {
47 AdditionalInformationServlet testSubject;
48 String resourceId = "";
50 HttpServletRequest request = null;
51 String userUserId = "";
55 testSubject = createTestSubject();
61 public void testCreateServiceAdditionalInformationLabel() throws Exception {
62 AdditionalInformationServlet testSubject;
63 String serviceId = "";
65 HttpServletRequest request = null;
66 String userUserId = "";
70 testSubject = createTestSubject();
76 public void testUpdateResourceAdditionalInformationLabel() throws Exception {
77 AdditionalInformationServlet testSubject;
78 String resourceId = "";
81 HttpServletRequest request = null;
86 testSubject = createTestSubject();
92 public void testUpdateServiceAdditionalInformationLabel() throws Exception {
93 AdditionalInformationServlet testSubject;
94 String serviceId = "";
97 HttpServletRequest request = null;
102 testSubject = createTestSubject();
108 public void testUpdateResourceAdditionalInformationLabel_1() throws Exception {
109 AdditionalInformationServlet testSubject;
110 String resourceId = "";
112 HttpServletRequest request = null;
117 testSubject = createTestSubject();
123 public void testDeleteServiceAdditionalInformationLabel() throws Exception {
124 AdditionalInformationServlet testSubject;
125 String serviceId = "";
127 HttpServletRequest request = null;
132 testSubject = createTestSubject();
138 public void testGetResourceAdditionalInformationLabel() throws Exception {
139 AdditionalInformationServlet testSubject;
140 String resourceId = "";
142 HttpServletRequest request = null;
147 testSubject = createTestSubject();
153 public void testGetServiceAdditionalInformationLabel() throws Exception {
154 AdditionalInformationServlet testSubject;
155 String serviceId = "";
157 HttpServletRequest request = null;
162 testSubject = createTestSubject();
168 public void testGetAllResourceAdditionalInformationLabel() throws Exception {
169 AdditionalInformationServlet testSubject;
170 String resourceId = "";
171 HttpServletRequest request = null;
176 testSubject = createTestSubject();
182 public void testGetAllServiceAdditionalInformationLabel() throws Exception {
183 AdditionalInformationServlet testSubject;
184 String serviceId = "";
185 HttpServletRequest request = null;
190 testSubject = createTestSubject();