push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / java / org / openecomp / sdc / translator / services / heattotosca / impl / ResourceTranslationContrailV2VMInterfaceImplTest.java
1 package org.openecomp.sdc.translator.services.heattotosca.impl;
2
3 import org.junit.Before;
4 import org.junit.Test;
5
6 import java.io.IOException;
7
8 /**
9  * @author Avrahamg
10  * @since August 10, 2016
11  */
12 public class ResourceTranslationContrailV2VMInterfaceImplTest extends BaseResourceTranslationTest {
13
14   @Override
15   @Before
16   public void setUp() throws IOException {
17     // do not delete this function. it prevents the superclass setup from running
18   }
19
20   @Test
21   public void testTranslateVMIWithGetResource() throws Exception {
22     inputFilesPath = "/mock/services/heattotosca/contrailv2VMinterface/oneNet/inputfiles";
23     outputFilesPath = "/mock/services/heattotosca/contrailv2VMinterface/oneNet/expectedoutputfiles";
24     initTranslatorAndTranslate();
25     testTranslation();
26   }
27
28   @Test
29   public void testTranslateVMIWithListOfNetworks() throws Exception {
30     inputFilesPath = "/mock/services/heattotosca/contrailv2VMinterface/listNet/inputfiles";
31     outputFilesPath =
32         "/mock/services/heattotosca/contrailv2VMinterface/listNet/expectedoutputfiles";
33     initTranslatorAndTranslate();
34     testTranslation();
35   }
36 }