Release version 1.13.7
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / AdditionalInformationServletTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.openecomp.sdc.be.servlets;
22
23 import static org.mockito.Mockito.mock;
24
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;
31
32
33 public class AdditionalInformationServletTest {
34
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);
42     }
43
44
45     @Test
46     public void testCreateResourceAdditionalInformationLabel() throws Exception {
47         AdditionalInformationServlet testSubject;
48         String resourceId = "";
49         String data = "";
50         HttpServletRequest request = null;
51         String userUserId = "";
52         Response result;
53
54         // default test
55         testSubject = createTestSubject();
56
57     }
58
59
60     @Test
61     public void testCreateServiceAdditionalInformationLabel() throws Exception {
62         AdditionalInformationServlet testSubject;
63         String serviceId = "";
64         String data = "";
65         HttpServletRequest request = null;
66         String userUserId = "";
67         Response result;
68
69         // default test
70         testSubject = createTestSubject();
71
72     }
73
74
75     @Test
76     public void testUpdateResourceAdditionalInformationLabel() throws Exception {
77         AdditionalInformationServlet testSubject;
78         String resourceId = "";
79         String labelId = "";
80         String data = "";
81         HttpServletRequest request = null;
82         String userId = "";
83         Response result;
84
85         // default test
86         testSubject = createTestSubject();
87
88     }
89
90
91     @Test
92     public void testUpdateServiceAdditionalInformationLabel() throws Exception {
93         AdditionalInformationServlet testSubject;
94         String serviceId = "";
95         String labelId = "";
96         String data = "";
97         HttpServletRequest request = null;
98         String userId = "";
99         Response result;
100
101         // default test
102         testSubject = createTestSubject();
103
104     }
105
106
107     @Test
108     public void testUpdateResourceAdditionalInformationLabel_1() throws Exception {
109         AdditionalInformationServlet testSubject;
110         String resourceId = "";
111         String labelId = "";
112         HttpServletRequest request = null;
113         String userId = "";
114         Response result;
115
116         // default test
117         testSubject = createTestSubject();
118
119     }
120
121
122     @Test
123     public void testDeleteServiceAdditionalInformationLabel() throws Exception {
124         AdditionalInformationServlet testSubject;
125         String serviceId = "";
126         String labelId = "";
127         HttpServletRequest request = null;
128         String userId = "";
129         Response result;
130
131         // default test
132         testSubject = createTestSubject();
133
134     }
135
136
137     @Test
138     public void testGetResourceAdditionalInformationLabel() throws Exception {
139         AdditionalInformationServlet testSubject;
140         String resourceId = "";
141         String labelId = "";
142         HttpServletRequest request = null;
143         String userId = "";
144         Response result;
145
146         // default test
147         testSubject = createTestSubject();
148
149     }
150
151
152     @Test
153     public void testGetServiceAdditionalInformationLabel() throws Exception {
154         AdditionalInformationServlet testSubject;
155         String serviceId = "";
156         String labelId = "";
157         HttpServletRequest request = null;
158         String userId = "";
159         Response result;
160
161         // default test
162         testSubject = createTestSubject();
163
164     }
165
166
167     @Test
168     public void testGetAllResourceAdditionalInformationLabel() throws Exception {
169         AdditionalInformationServlet testSubject;
170         String resourceId = "";
171         HttpServletRequest request = null;
172         String userId = "";
173         Response result;
174
175         // default test
176         testSubject = createTestSubject();
177
178     }
179
180
181     @Test
182     public void testGetAllServiceAdditionalInformationLabel() throws Exception {
183         AdditionalInformationServlet testSubject;
184         String serviceId = "";
185         HttpServletRequest request = null;
186         String userId = "";
187         Response result;
188
189         // default test
190         testSubject = createTestSubject();
191
192     }
193
194
195 }