Added oparent to sdc main
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / servlets / ConfigMgrServletTest.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 javax.servlet.http.HttpServletRequest;
24
25 import org.junit.Test;
26
27 import com.datastax.driver.core.Configuration;
28
29 public class ConfigMgrServletTest {
30
31         private ConfigMgrServlet createTestSubject() {
32                 return new ConfigMgrServlet();
33         }
34
35         
36         @Test
37         public void testGetConfig() throws Exception {
38                 ConfigMgrServlet testSubject;
39                 HttpServletRequest request = null;
40                 String type = "";
41                 String result;
42
43                 // test 1
44                 testSubject = createTestSubject();
45                 type = null;
46
47
48                 // test 2
49                 testSubject = createTestSubject();
50                 type = "";
51
52                 // test 3
53                 testSubject = createTestSubject();
54                 type = "configuration";
55         }
56
57         
58         @Test
59         public void testSetConfig1() throws Exception {
60                 ConfigMgrServlet testSubject;
61                 HttpServletRequest request = null;
62                 Configuration configuration = null;
63                 String result;
64
65                 // default test
66                 testSubject = createTestSubject();
67         }
68
69         
70         @Test
71         public void testSetConfig2() throws Exception {
72                 ConfigMgrServlet testSubject;
73                 HttpServletRequest request = null;
74                 Configuration configuration = null;
75
76                 // default test
77                 testSubject = createTestSubject();
78         }
79
80         
81         @Test
82         public void testSetConfig3() throws Exception {
83                 ConfigMgrServlet testSubject;
84                 HttpServletRequest request = null;
85                 Configuration configuration = null;
86                 String result;
87
88                 // default test
89                 testSubject = createTestSubject();
90         }
91
92         
93         @Test
94         public void testSetConfig4() throws Exception {
95                 ConfigMgrServlet testSubject;
96                 HttpServletRequest request = null;
97                 Configuration configuration = null;
98
99                 // default test
100                 testSubject = createTestSubject();
101         }
102 }