blob: 95757e7cf90476f4a447c5da00683c5ddaf1d94b (
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
|
package org.openecomp.sdc.translator.services.heattotosca.impl;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
/**
* @author Avrahamg
* @since August 10, 2016
*/
public class ResourceTranslationContrailV2VMInterfaceImplTest extends BaseResourceTranslationTest {
@Override
@Before
public void setUp() throws IOException {
// do not delete this function. it prevents the superclass setup from running
}
@Test
public void testTranslateVMIWithGetResource() throws Exception {
inputFilesPath = "/mock/services/heattotosca/contrailv2VMinterface/oneNet/inputfiles";
outputFilesPath = "/mock/services/heattotosca/contrailv2VMinterface/oneNet/expectedoutputfiles";
initTranslatorAndTranslate();
testTranslation();
}
@Test
public void testTranslateVMIWithListOfNetworks() throws Exception {
inputFilesPath = "/mock/services/heattotosca/contrailv2VMinterface/listNet/inputfiles";
outputFilesPath =
"/mock/services/heattotosca/contrailv2VMinterface/listNet/expectedoutputfiles";
initTranslatorAndTranslate();
testTranslation();
}
}
|