615993a4ccfaaf9b5a3ee58d2f982bdc32d259de
[dcaegen2/platform.git] / mod / runtimeapi / runtime-core / src / test / java / org / onap / dcae / runtime / core / TestIntegeration.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  * 
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  * 
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  * ============LICENSE_END=========================================================
17  */
18 package org.onap.dcae.runtime.core;
19
20 import org.onap.dcae.runtime.core.blueprint_creator.BlueprintCreator;
21 import org.junit.Before;
22 import org.junit.Ignore;
23 import org.junit.Test;
24 import org.onap.dcae.runtime.core.blueprint_creator.BlueprintCreatorOnap;
25
26 public class TestIntegeration {
27
28     private FlowGraphParser flowGraphParser;
29
30     @Before
31     public void setUp() throws Exception{
32         //1. prepare Graph
33         FlowGraph<Node, Edge> flowGraph = Helper.prepareFlowGraph();
34
35         //2. Inject graph in FlowGraphParser
36         BlueprintCreator blueprintCreator = new BlueprintCreatorOnap();
37         flowGraphParser = new FlowGraphParser(blueprintCreator);
38         flowGraphParser.parse(flowGraph);
39     }
40
41     @Test
42     @Ignore
43     public void testParserCreatesBlueprintsFromFlowGraph() throws Exception{
44         /*
45         TODO: FIX
46         //3. Check if the parser can create blueprints for the componentSpec collection
47         //resultMap has key as a component-name and value is a blueprint string
48         Map<String,String> expectedBlueprints = Helper.loadTestBlueprints();
49         Map<String,String> resultBlueprints = flowGraphParser.createAndProcessBlueprints();
50
51         assertEquals(expectedBlueprints,resultBlueprints);
52         */
53     }
54 }