58f17493d4f675fa12aa8c6272dfe62334eceb3e
[sdc.git] /
1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
2
3 import org.junit.Before;
4 import org.junit.Test;
5 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
6
7 import java.io.IOException;
8
9 public class UnifedCompositionDynamicPortsTest extends BaseFullTranslationTest {
10   private static final String baseDirectory = "/mock/services/heattotosca/fulltest/dynamicPorts";
11   @Override
12   @Before
13   public void setUp() throws IOException {
14     // do not delete this function. it prevents the superclass setup from running
15   }
16
17   @Test
18   public void testDynamicPortWithDependsOn() throws IOException {
19     testTranslationWithInit(
20         baseDirectory + "/dynamicPortsWithDependsOn/in",
21         baseDirectory + "/dynamicPortsWithDependsOn/out"
22     );
23   }
24
25   @Test
26   public void testDependsOnFromNovaToNestedPort() throws IOException {
27     testTranslationWithInit(
28         baseDirectory + "/dependsOnFromNovaToNestedPort/in",
29         baseDirectory + "/dependsOnFromNovaToNestedPort/out"
30     );
31   }
32
33   @Test
34   public void testDependsOnFromPortToNested() throws IOException {
35     testTranslationWithInit(
36         baseDirectory + "/dependsOnFromPortToNested/in",
37         baseDirectory + "/dependsOnFromPortToNested/out"
38     );
39   }
40
41   @Test
42   public void testDependsOnFromVfcToNested() throws IOException {
43     testTranslationWithInit(
44         baseDirectory + "/dependsOnFromVfcToNested/in",
45         baseDirectory + "/dependsOnFromVfcToNested/out"
46     );
47   }
48
49   @Test
50   public void testDependsOnFromNestedToNested() throws IOException {
51     testTranslationWithInit(
52         baseDirectory + "/dependsOnFromNestedToNested/in",
53         baseDirectory + "/dependsOnFromNestedToNested/out"
54     );
55   }
56 }