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