Catalog alignment
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / GroupServletTest.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.ComponentInstanceBusinessLogic;
25 import org.openecomp.sdc.be.components.impl.GroupBusinessLogic;
26 import org.openecomp.sdc.be.components.impl.ResourceImportManager;
27 import org.openecomp.sdc.be.impl.ComponentsUtils;
28 import org.openecomp.sdc.be.impl.ServletUtils;
29 import org.openecomp.sdc.be.user.UserBusinessLogic;
30
31 import javax.servlet.http.HttpServletRequest;
32 import javax.ws.rs.core.Response;
33
34 import static org.mockito.Mockito.mock;
35
36 public class GroupServletTest {
37
38         private GroupServlet createTestSubject() {
39                 UserBusinessLogic userBusinessLogic = mock(UserBusinessLogic.class);
40                 GroupBusinessLogic groupBL = mock(GroupBusinessLogic.class);
41                 ComponentInstanceBusinessLogic componentInstanceBL = mock(ComponentInstanceBusinessLogic.class);
42                 ComponentsUtils componentsUtils = mock(ComponentsUtils.class);
43                 ServletUtils servletUtils = mock(ServletUtils.class);
44                 ResourceImportManager resourceImportManager = mock(ResourceImportManager.class);
45                 return new GroupServlet(userBusinessLogic, groupBL, componentInstanceBL, componentsUtils, servletUtils,
46                         resourceImportManager);
47         }
48
49         
50         @Test
51         public void testGetGroupArtifactById() throws Exception {
52                 GroupServlet testSubject;
53                 String containerComponentType = "";
54                 String componentId = "";
55                 String groupId = "";
56                 HttpServletRequest request = null;
57                 String userId = "";
58                 Response result;
59
60                 // default test
61         }
62
63         
64         @Test
65         public void testUpdateGroupMetadata() throws Exception {
66                 GroupServlet testSubject;
67                 String containerComponentType = "";
68                 String componentId = "";
69                 String groupUniqueId = "";
70                 String data = "";
71                 HttpServletRequest request = null;
72                 String userId = "";
73                 Response result;
74
75                 // default test
76                 testSubject = createTestSubject();
77         }
78 }