Catalog alignment
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / DistributionServiceServletTest.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.DistributionMonitoringBusinessLogic;
25 import org.openecomp.sdc.be.impl.ComponentsUtils;
26 import org.openecomp.sdc.be.user.UserBusinessLogic;
27
28 import javax.servlet.ServletContext;
29 import javax.servlet.http.HttpServletRequest;
30 import javax.ws.rs.core.Response;
31
32 import static org.mockito.Mockito.mock;
33
34 public class DistributionServiceServletTest {
35
36         private DistributionServiceServlet createTestSubject() {
37                 UserBusinessLogic userBusinessLogic = mock(UserBusinessLogic.class);
38                 ComponentsUtils componentsUtils = mock(ComponentsUtils.class);
39                 DistributionMonitoringBusinessLogic distributionMonitoringLogic = mock(DistributionMonitoringBusinessLogic.class);
40                 return new DistributionServiceServlet(userBusinessLogic, componentsUtils,
41                         distributionMonitoringLogic);
42         }
43
44         
45         @Test
46         public void testGetServiceById() throws Exception {
47                 DistributionServiceServlet testSubject;
48                 String serviceUUID = "";
49                 HttpServletRequest request = null;
50                 String userId = "";
51                 Response result;
52
53                 // default test
54                 testSubject = createTestSubject();
55         }
56
57         
58         @Test
59         public void testGetListOfDistributionStatuses() throws Exception {
60                 DistributionServiceServlet testSubject;
61                 String did = "";
62                 HttpServletRequest request = null;
63                 String userId = "";
64                 Response result;
65
66                 // default test
67                 testSubject = createTestSubject();
68         }
69
70         
71         @Test
72         public void testInit() throws Exception {
73                 DistributionServiceServlet testSubject;
74                 HttpServletRequest request = null;
75
76                 // default test
77                 testSubject = createTestSubject();
78         }
79
80         
81         @Test
82         public void testGetDistributionBL() throws Exception {
83                 DistributionServiceServlet testSubject;
84                 ServletContext context = null;
85                 DistributionMonitoringBusinessLogic result;
86
87                 // default test
88                 testSubject = createTestSubject();
89         }
90 }