Added oparent to sdc main
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / components / distribution / engine / AaiRequestHandlerTest.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.components.distribution.engine;
22
23 import mockit.Deencapsulation;
24 import org.junit.Test;
25 import org.openecomp.sdc.be.components.BeConfDependentTest;
26
27 import java.util.Properties;
28
29 public class AaiRequestHandlerTest extends BeConfDependentTest {
30
31         private AaiRequestHandler createTestSubject() {
32                 AaiRequestHandler testSubject = new AaiRequestHandler();
33                 testSubject.init();
34                 return testSubject;
35         }
36
37         @Test
38         public void testInit() throws Exception {
39                 AaiRequestHandler testSubject;
40
41                 // default test
42                 testSubject = createTestSubject();
43                 testSubject.init();
44         }
45
46         @Test
47         public void testGetOperationalEnvById() throws Exception {
48                 AaiRequestHandler testSubject;
49                 String id = "";
50
51                 // default test
52                 testSubject = createTestSubject();
53                 testSubject.getOperationalEnvById(id);
54         }
55
56         @Test
57         public void testRetryOnException() throws Exception {
58                 AaiRequestHandler testSubject;
59                 Exception e = null;
60                 boolean result;
61
62                 // default test
63                 testSubject = createTestSubject();
64                 result = Deencapsulation.invoke(testSubject, "retryOnException", new Object[] { Exception.class });
65         }
66
67         @Test
68         public void testGetCause() throws Exception {
69                 AaiRequestHandler testSubject;
70                 Exception e = null;
71                 Throwable result;
72
73                 // default test
74                 testSubject = createTestSubject();
75                 result = Deencapsulation.invoke(testSubject, "getCause", new Object[] { Exception.class });
76         }
77
78         @Test
79         public void testCreateHeaders() throws Exception {
80                 AaiRequestHandler testSubject;
81                 Properties result;
82
83                 // default test
84                 testSubject = createTestSubject();
85                 result = Deencapsulation.invoke(testSubject, "createHeaders");
86         }
87 }