Third part of onap rename
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / test / java / org / onap / appc / dg / TestDownloadIsbcConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 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.onap.appc.dg;
22
23
24 import java.util.HashMap;
25 import java.util.Map;
26
27 import org.junit.Test;
28 import org.onap.appc.dg.mock.instance.MockSvcLogicJavaPlugin;
29
30 /* need to move to open source
31 import com.att.sdnctl.dgtestlibrary.AbstractDGTestCase;
32 import com.att.sdnctl.dgtestlibrary.DGTestCase;
33 import com.att.sdnctl.dgtestlibrary.GraphKey;
34 */
35 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
36 import com.att.eelf.configuration.EELFLogger;
37 import com.att.eelf.configuration.EELFManager;
38
39 public class TestDownloadIsbcConfig /* extends AbstractDGTestCase */{
40         private static final EELFLogger logger = EELFManager.getInstance().getLogger(TestDownloadIsbcConfig.class);
41         public static String DownloadIsbcConfigXML = "src/main/resources/xml/APPC_DownloadIsbcConfig.xml";
42
43 /*
44         @Test
45         public void testDownloadIsbcConfigSuccess() {
46                 try {
47
48                         String propertyfileName = "APPC/DownloadIsbcConfig/DownloadIsbcConfig_Success.properties";
49                 
50                         // Register Call graphs
51                         String injectGraphXmls[] = new String[] { DownloadIsbcConfigXML };
52
53                         Map<String, Object> serviceReferences = new HashMap<String, Object>();
54                 
55                         
56                 
57                 
58                         GraphKey  graphKey = new GraphKey("APPC", null, "DownloadIsbcConfig", null);
59                         DGTestCase tc = new DGTestCase(graphKey);
60
61                         
62                         tc.setInjectGraphXmls(injectGraphXmls);
63                         tc.setServiceReferences(serviceReferences);
64                         tc.setPropertyfileName(propertyfileName);
65                         
66
67
68                         SvcLogicContext ctx = new SvcLogicContext();
69                         processTestCase(tc, ctx);
70
71                 
72
73
74                 } catch (Exception e) {
75                         e.printStackTrace();
76                 }
77         }
78
79
80         @Test
81         public void testConfigFileFailure() {
82                 try {
83
84                         String propertyfileName = "APPC/DownloadIsbcConfig/ConfigFile_Failure.properties";
85                 
86                         // Register Call graphs
87                         String injectGraphXmls[] = new String[] { DownloadIsbcConfigXML };
88
89                         Map<String, Object> serviceReferences = new HashMap<String, Object>();
90                 
91                 
92                 
93                         GraphKey  graphKey = new GraphKey("APPC", null, "DownloadIsbcConfig", null);
94                         DGTestCase tc = new DGTestCase(graphKey);
95
96                         
97                         tc.setInjectGraphXmls(injectGraphXmls);
98                         tc.setServiceReferences(serviceReferences);
99                         tc.setPropertyfileName(propertyfileName);
100                         
101
102
103                         SvcLogicContext ctx = new SvcLogicContext();
104                         processTestCase(tc, ctx);
105
106                 
107
108
109                 } catch (Exception e) {
110                         e.printStackTrace();
111                 }
112         }
113
114         
115         @Test
116         public void testPutFailure() {
117                 try {
118
119                         String propertyfileName = "APPC/DownloadIsbcConfig/Put_Failure.properties";
120                 
121                         // Register Call graphs
122                         String injectGraphXmls[] = new String[] { DownloadIsbcConfigXML };
123
124                         Map<String, Object> serviceReferences = new HashMap<String, Object>();
125                 
126                         
127                 
128                 
129                         GraphKey  graphKey = new GraphKey("APPC", null, "DownloadIsbcConfig", null);
130                         DGTestCase tc = new DGTestCase(graphKey);
131
132                         
133                         tc.setInjectGraphXmls(injectGraphXmls);
134                         tc.setServiceReferences(serviceReferences);
135                         tc.setPropertyfileName(propertyfileName);
136                         
137
138
139                         SvcLogicContext ctx = new SvcLogicContext();
140                         processTestCase(tc, ctx);
141
142                 
143
144
145                 } catch (Exception e) {
146                         e.printStackTrace();
147                 }
148         }
149
150 */
151
152 }