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 org.junit.Test;
24 import org.openecomp.sdc.be.components.impl.AdditionalInformationBusinessLogic;
25 import org.openecomp.sdc.be.impl.ComponentsUtils;
26 import org.openecomp.sdc.be.user.UserBusinessLogic;
28 import javax.servlet.http.HttpServletRequest;
29 import javax.ws.rs.core.Response;
31 import static org.mockito.Mockito.mock;
34 public class AdditionalInformationServletTest {
36 private AdditionalInformationServlet createTestSubject() {
37 UserBusinessLogic userBusinessLogic = mock(UserBusinessLogic.class);
38 ComponentsUtils componentsUtils = mock(ComponentsUtils.class);
39 AdditionalInformationBusinessLogic additionalInformationBusinessLogic =
40 mock(AdditionalInformationBusinessLogic.class);
41 return new AdditionalInformationServlet(userBusinessLogic, componentsUtils,
42 additionalInformationBusinessLogic);
47 public void testCreateResourceAdditionalInformationLabel() throws Exception {
48 AdditionalInformationServlet testSubject;
49 String resourceId = "";
51 HttpServletRequest request = null;
52 String userUserId = "";
56 testSubject = createTestSubject();
62 public void testCreateServiceAdditionalInformationLabel() throws Exception {
63 AdditionalInformationServlet testSubject;
64 String serviceId = "";
66 HttpServletRequest request = null;
67 String userUserId = "";
71 testSubject = createTestSubject();
77 public void testUpdateResourceAdditionalInformationLabel() throws Exception {
78 AdditionalInformationServlet testSubject;
79 String resourceId = "";
82 HttpServletRequest request = null;
87 testSubject = createTestSubject();
93 public void testUpdateServiceAdditionalInformationLabel() throws Exception {
94 AdditionalInformationServlet testSubject;
95 String serviceId = "";
98 HttpServletRequest request = null;
103 testSubject = createTestSubject();
109 public void testUpdateResourceAdditionalInformationLabel_1() throws Exception {
110 AdditionalInformationServlet testSubject;
111 String resourceId = "";
113 HttpServletRequest request = null;
118 testSubject = createTestSubject();
124 public void testDeleteServiceAdditionalInformationLabel() throws Exception {
125 AdditionalInformationServlet testSubject;
126 String serviceId = "";
128 HttpServletRequest request = null;
133 testSubject = createTestSubject();
139 public void testGetResourceAdditionalInformationLabel() throws Exception {
140 AdditionalInformationServlet testSubject;
141 String resourceId = "";
143 HttpServletRequest request = null;
148 testSubject = createTestSubject();
154 public void testGetServiceAdditionalInformationLabel() throws Exception {
155 AdditionalInformationServlet testSubject;
156 String serviceId = "";
158 HttpServletRequest request = null;
163 testSubject = createTestSubject();
169 public void testGetAllResourceAdditionalInformationLabel() throws Exception {
170 AdditionalInformationServlet testSubject;
171 String resourceId = "";
172 HttpServletRequest request = null;
177 testSubject = createTestSubject();
183 public void testGetAllServiceAdditionalInformationLabel() throws Exception {
184 AdditionalInformationServlet testSubject;
185 String serviceId = "";
186 HttpServletRequest request = null;
191 testSubject = createTestSubject();