Refactoring Consolidation Service
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / InputsServletTest.java
1 package org.openecomp.sdc.be.servlets;
2
3 import javax.servlet.ServletContext;
4 import javax.servlet.http.HttpServletRequest;
5 import javax.ws.rs.core.Response;
6
7 import org.junit.Test;
8 import org.openecomp.sdc.be.components.impl.InputsBusinessLogic;
9 import org.openecomp.sdc.be.model.ComponentInstInputsMap;
10 import org.openecomp.sdc.be.model.User;
11 import org.openecomp.sdc.exception.ResponseFormat;
12
13 import fj.data.Either;
14
15 public class InputsServletTest {
16
17         private InputsServlet createTestSubject() {
18                 return new InputsServlet();
19         }
20
21         
22         @Test
23         public void testGetComponentInputs() throws Exception {
24                 InputsServlet testSubject;
25                 String componentType = "";
26                 String componentId = "";
27                 HttpServletRequest request = null;
28                 String fromName = "";
29                 int amount = 0;
30                 String userId = "";
31                 Response result;
32
33                 // default test
34                 testSubject = createTestSubject();
35         }
36
37         
38         @Test
39         public void testUpdateComponentInputs() throws Exception {
40                 InputsServlet testSubject;
41                 String containerComponentType = "";
42                 String componentId = "";
43                 String data = "";
44                 HttpServletRequest request = null;
45                 Response result;
46
47                 // default test
48                 testSubject = createTestSubject();
49         }
50
51         
52         @Test
53         public void testGetComponentInstanceInputs() throws Exception {
54                 InputsServlet testSubject;
55                 String componentType = "";
56                 String componentId = "";
57                 String instanceId = "";
58                 String originComonentUid = "";
59                 HttpServletRequest request = null;
60                 String userId = "";
61                 Response result;
62
63                 // default test
64                 testSubject = createTestSubject();
65         }
66
67         
68         @Test
69         public void testGetInputPropertiesForComponentInstance() throws Exception {
70                 InputsServlet testSubject;
71                 String componentType = "";
72                 String componentId = "";
73                 String instanceId = "";
74                 String inputId = "";
75                 HttpServletRequest request = null;
76                 String userId = "";
77                 Response result;
78
79                 // default test
80                 testSubject = createTestSubject();
81         }
82
83         
84         @Test
85         public void testGetInputsForComponentInput() throws Exception {
86                 InputsServlet testSubject;
87                 String componentType = "";
88                 String componentId = "";
89                 String inputId = "";
90                 HttpServletRequest request = null;
91                 String userId = "";
92                 Response result;
93
94                 // default test
95                 testSubject = createTestSubject();
96         }
97
98         
99         @Test
100         public void testGetInputsAndPropertiesForComponentInput() throws Exception {
101                 InputsServlet testSubject;
102                 String componentType = "";
103                 String componentId = "";
104                 String inputId = "";
105                 HttpServletRequest request = null;
106                 String userId = "";
107                 Response result;
108
109                 // default test
110                 testSubject = createTestSubject();
111         }
112
113         
114         @Test
115         public void testParseToComponentInstanceMap() throws Exception {
116                 InputsServlet testSubject;
117                 String serviceJson = "";
118                 User user = null;
119                 Either<ComponentInstInputsMap, ResponseFormat> result;
120
121                 // default test
122                 testSubject = createTestSubject();
123         }
124
125         
126         @Test
127         public void testCreateMultipleInputs() throws Exception {
128                 InputsServlet testSubject;
129                 String componentType = "";
130                 String componentId = "";
131                 HttpServletRequest request = null;
132                 String userId = "";
133                 String componentInstInputsMapObj = "";
134                 Response result;
135
136                 // default test
137                 testSubject = createTestSubject();
138         }
139
140         
141         @Test
142         public void testDeleteInput() throws Exception {
143                 InputsServlet testSubject;
144                 String componentType = "";
145                 String componentId = "";
146                 String inputId = "";
147                 HttpServletRequest request = null;
148                 String userId = "";
149                 String componentInstInputsMapObj = "";
150                 Response result;
151
152                 // default test
153                 testSubject = createTestSubject();
154         }
155
156         
157         @Test
158         public void testGetInputBL() throws Exception {
159                 InputsServlet testSubject;
160                 ServletContext context = null;
161                 InputsBusinessLogic result;
162
163                 // default test
164                 testSubject = createTestSubject();
165         }
166 }