aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/recursive/TranslateHeatNestedRecursiveTest.java
blob: 792f4f4bf580a05b4e6e6fee785b7305a75fb1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.openecomp.sdc.translator.impl.heattotosca.nested.recursive;

import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;

public class TranslateHeatNestedRecursiveTest extends BaseResourceTranslationTest {


  @Override
  @Before
  public void setUp() throws IOException {
    // do not delete this function. it prevents the superclass setup from running
  }

  @Test
  public void testTranslateRecursive() throws Exception {
    inputFilesPath = "/mock/heat/nested/recursive/inputs";
    outputFilesPath = "/mock/heat/nested/recursive/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
  }

  @Test
  public void testTranslateExposedReq2Level() throws Exception {
    inputFilesPath = "/mock/heat/nested/nested2levels/inputs";
    outputFilesPath = "/mock/heat/nested/nested2levels/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
  }

  @Test
  public void testTranslateExposedReq3Level() throws Exception {
    inputFilesPath = "/mock/heat/nested/nested3levels/inputs";
    outputFilesPath = "/mock/heat/nested/nested3levels/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
  }


}