1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
3 import org.junit.Assert;
4 import org.junit.Before;
5 import org.junit.Ignore;
7 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
9 import java.io.IOException;
11 public class UnifiedCompositionMixPatternFullTest extends BaseFullTranslationTest {
15 public void setUp() throws IOException {
16 // do not delete this function. it prevents the superclass setup from running
20 public void testMixPatterns() throws IOException {
22 "/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in";
24 "/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/out";
26 testTranslationWithInit();
30 public void testMixPatternsWithConnectivityBetweenPatterns() throws IOException {
32 "/mock/services/heattotosca/fulltest/mixPatterns/connectivityBetweenPatterns/in";
34 "/mock/services/heattotosca/fulltest/mixPatterns/connectivityBetweenPatterns/out";
36 testTranslationWithInit();
40 public void testMixPatternsWithConnectivityAndMoreThanOneOccurenceForEachPattern()
43 "/mock/services/heattotosca/fulltest/mixPatterns/twoAppearancePerPatternWithConnectivities/in";
45 "/mock/services/heattotosca/fulltest/mixPatterns/twoAppearancePerPatternWithConnectivities/out";
47 testTranslationWithInit();
51 public void testDuplicateResourceIdsInDiffAddOnFiles() throws IOException {
53 "/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in";
56 testTranslationWithInit();
58 Assert.assertEquals(e.getMessage(), "Resource with id lb_0_int_oam_int_0_port occures more " +
59 "than once in different addOn files");
64 public void testMixPatternsWithDependencyConnectivity() throws IOException {
66 "/mock/services/heattotosca/fulltest/mixPatterns/dependencyConnectivity/in";
68 "/mock/services/heattotosca/fulltest/mixPatterns/dependencyConnectivity/out";
70 testTranslationWithInit();