1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
5 import org.junit.rules.ExpectedException;
6 import org.openecomp.sdc.common.errors.CoreException;
7 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
9 import java.io.IOException;
11 public class UnifiedCompositionMixPatternFullTest extends BaseFullTranslationTest {
13 private static final String BASE_DIRECTORY = "/mock/services/heattotosca/fulltest/mixPatterns/";
16 public ExpectedException exception = ExpectedException.none();
19 public void testMixPatterns() throws IOException {
20 testTranslationWithInit(BASE_DIRECTORY + "oneAppearancePerPattern");
24 public void testMixPatternsWithConnectivityBetweenPatterns() throws IOException {
25 testTranslationWithInit(BASE_DIRECTORY + "connectivityBetweenPatterns");
29 public void testMixPatternsWithConnectivityAndMoreThanOneOccurenceForEachPattern()
31 testTranslationWithInit(BASE_DIRECTORY + "twoAppearancePerPatternWithConnectivities");
35 public void testDuplicateResourceIdsInDiffAddOnFiles() throws IOException {
36 exception.expect(CoreException.class);
37 exception.expectMessage("Resource with id lb_0_int_oam_int_0_port occurs more " +
38 "than once in different addOn files");
40 testTranslationWithInit(BASE_DIRECTORY + "duplicateResourceIdsInDiffAddOnFiles");
44 public void testMixPatternsWithDependencyConnectivity() throws IOException {
45 testTranslationWithInit(BASE_DIRECTORY + "dependencyConnectivity");