aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/PortToNetResourceConnectionTest.java
blob: 6411d4759efbbd2f80ac6edbd79493db42c1d3be (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
package org.openecomp.sdc.translator.services.heattotosca.impl;

import org.junit.Before;
import org.junit.Test;

import java.io.IOException;

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

  @Test
  public void testTranslatePortToNetNestedConnection() throws Exception {
    inputFilesPath = "/mock/services/heattotosca/porttonetconnection/nested/inputfiles";
    outputFilesPath = "/mock/services/heattotosca/porttonetconnection/nested/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
  }

  @Test
  public void testTranslatePortToSharedNetNestedConnection() throws Exception {
    inputFilesPath = "/mock/services/heattotosca/porttonetconnection/shared/inputfiles";
    outputFilesPath = "/mock/services/heattotosca/porttonetconnection/shared/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
  }

  @Test
  public void testTranslatePortToNetMultiConnection() throws Exception {
    inputFilesPath = "/mock/services/heattotosca/porttonetconnection/multi/inputfiles";
    outputFilesPath = "/mock/services/heattotosca/porttonetconnection/multi/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
  }
}