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