Update license header in appc-dg files
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / test / java / org / onap / appc / dg / TestDownloadIsbcConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.appc.dg;
25
26
27 import java.util.HashMap;
28 import java.util.Map;
29
30 import org.junit.Test;
31 import org.onap.appc.dg.mock.instance.MockSvcLogicJavaPlugin;
32
33 /* need to move to open source
34 import org.onap.sdnc.dgtestlibrary.AbstractDGTestCase;
35 import org.onap.sdnc.dgtestlibrary.DGTestCase;
36 import org.onap.sdnc.dgtestlibrary.GraphKey;
37 */
38 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
39 import com.att.eelf.configuration.EELFLogger;
40 import com.att.eelf.configuration.EELFManager;
41
42 public class TestDownloadIsbcConfig /* extends AbstractDGTestCase */{
43     private static final EELFLogger logger = EELFManager.getInstance().getLogger(TestDownloadIsbcConfig.class);
44     public static String DownloadIsbcConfigXML = "src/main/resources/xml/APPC_DownloadIsbcConfig.xml";
45
46 /*
47     @Test
48     public void testDownloadIsbcConfigSuccess() {
49         try {
50
51             String propertyfileName = "APPC/DownloadIsbcConfig/DownloadIsbcConfig_Success.properties";
52
53             // Register Call graphs
54             String injectGraphXmls[] = new String[] { DownloadIsbcConfigXML };
55
56             Map<String, Object> serviceReferences = new HashMap<String, Object>();
57
58
59
60
61             GraphKey  graphKey = new GraphKey("APPC", null, "DownloadIsbcConfig", null);
62             DGTestCase tc = new DGTestCase(graphKey);
63
64
65             tc.setInjectGraphXmls(injectGraphXmls);
66             tc.setServiceReferences(serviceReferences);
67             tc.setPropertyfileName(propertyfileName);
68
69
70
71             SvcLogicContext ctx = new SvcLogicContext();
72             processTestCase(tc, ctx);
73
74
75
76
77         } catch (Exception e) {
78             e.printStackTrace();
79         }
80     }
81
82
83     @Test
84     public void testConfigFileFailure() {
85         try {
86
87             String propertyfileName = "APPC/DownloadIsbcConfig/ConfigFile_Failure.properties";
88
89             // Register Call graphs
90             String injectGraphXmls[] = new String[] { DownloadIsbcConfigXML };
91
92             Map<String, Object> serviceReferences = new HashMap<String, Object>();
93
94
95
96             GraphKey  graphKey = new GraphKey("APPC", null, "DownloadIsbcConfig", null);
97             DGTestCase tc = new DGTestCase(graphKey);
98
99
100             tc.setInjectGraphXmls(injectGraphXmls);
101             tc.setServiceReferences(serviceReferences);
102             tc.setPropertyfileName(propertyfileName);
103
104
105
106             SvcLogicContext ctx = new SvcLogicContext();
107             processTestCase(tc, ctx);
108
109
110
111
112         } catch (Exception e) {
113             e.printStackTrace();
114         }
115     }
116
117
118     @Test
119     public void testPutFailure() {
120         try {
121
122             String propertyfileName = "APPC/DownloadIsbcConfig/Put_Failure.properties";
123
124             // Register Call graphs
125             String injectGraphXmls[] = new String[] { DownloadIsbcConfigXML };
126
127             Map<String, Object> serviceReferences = new HashMap<String, Object>();
128
129
130
131
132             GraphKey  graphKey = new GraphKey("APPC", null, "DownloadIsbcConfig", null);
133             DGTestCase tc = new DGTestCase(graphKey);
134
135
136             tc.setInjectGraphXmls(injectGraphXmls);
137             tc.setServiceReferences(serviceReferences);
138             tc.setPropertyfileName(propertyfileName);
139
140
141
142             SvcLogicContext ctx = new SvcLogicContext();
143             processTestCase(tc, ctx);
144
145
146
147
148         } catch (Exception e) {
149             e.printStackTrace();
150         }
151     }
152
153 */
154
155 }