2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.appc.dg;
23 import java.util.HashMap;
26 import org.junit.Test;
29 import com.att.sdnctl.dgtestlibrary.AbstractDGTestCase;
30 import com.att.sdnctl.dgtestlibrary.DGTestCase;
31 import com.att.sdnctl.dgtestlibrary.GraphKey;
33 import org.openecomp.sdnc.sli.SvcLogicContext;
35 public class TestConfigurationDocumentRequest /* extends AbstractDGTestCase */ {
39 public void testSDCMessage() {
41 String propertyfileName = "SDC-MESSAGE_method_configuration-document-request_TC1.properties";
43 String configurationDocumentRequestXML = "src/main/resources/xml/SDC-MESSAGE_method_configuration-document-request_3.0.0.xml";
46 // Register Call graphs
47 String injectGraphXmls[] = new String[] { configurationDocumentRequestXML};
49 Map<String, Object> serviceReferences = new HashMap<String, Object>();
50 serviceReferences.put("org.openecomp.sdnc.config.generator.convert.ConvertNode",new org.openecomp.sdnc.config.generator.convert.ConvertNode());
51 serviceReferences.put("org.openecomp.sdnc.config.generator.merge.MergeNode", new org.openecomp.sdnc.config.generator.merge.MergeNode());
53 GraphKey graphKey = new GraphKey("SDC-MESSAGE", null, "configuration-document-request", null);
54 DGTestCase tc = new DGTestCase(graphKey);
55 tc.setInjectGraphXmls(injectGraphXmls);
56 tc.setServiceReferences(serviceReferences);
57 tc.setPropertyfileName(propertyfileName);
59 SvcLogicContext ctx = new SvcLogicContext();
60 processTestCase(tc, ctx);
62 } catch (Exception e) {