1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
3 import org.junit.Assert;
4 import org.junit.Before;
6 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
8 import java.io.IOException;
10 public class UnifiedCompositionMixPatternFullTest extends BaseFullTranslationTest {
14 public void setUp() throws IOException {
15 // do not delete this function. it prevents the superclass setup from running
19 public void testMixPatterns() throws IOException {
21 "/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in";
23 "/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/out";
25 testTranslationWithInit();
29 public void testMixPatternsWithConnectivityBetweenPatterns() throws IOException {
31 "/mock/services/heattotosca/fulltest/mixPatterns/connectivityBetweenPatterns/in";
33 "/mock/services/heattotosca/fulltest/mixPatterns/connectivityBetweenPatterns/out";
35 testTranslationWithInit();
39 public void testMixPatternsWithConnectivityAndMoreThanOneOccurenceForEachPattern()
42 "/mock/services/heattotosca/fulltest/mixPatterns/twoAppearancePerPatternWithConnectivities/in";
44 "/mock/services/heattotosca/fulltest/mixPatterns/twoAppearancePerPatternWithConnectivities/out";
46 testTranslationWithInit();
50 public void testDuplicateResourceIdsInDiffAddOnFiles() throws IOException {
52 "/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in";
55 testTranslationWithInit();
57 Assert.assertEquals(e.getMessage(), "Resource with id lb_0_int_oam_int_0_port occures more " +
58 "than once in different addOn files");
63 public void testMixPatternsWithDependencyConnectivity() throws IOException {
65 "/mock/services/heattotosca/fulltest/mixPatterns/dependencyConnectivity/in";
67 "/mock/services/heattotosca/fulltest/mixPatterns/dependencyConnectivity/out";
69 testTranslationWithInit();