blob: c3851a5b8300aef97f6eaad32332168cbb1c9650 (
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
39
40
41
42
43
44
45
46
47
|
package org.openecomp.sdc.asdctool.main;
import org.junit.Test;
import org.openecomp.sdc.asdctool.enums.SchemaZipFileEnum;
import java.nio.file.NoSuchFileException;
public class SdcSchemaFileImportTest {
private SdcSchemaFileImport createTestSubject() {
return new SdcSchemaFileImport();
}
@Test(expected=NoSuchFileException.class)
public void testCreateAndSaveNodeSchemaFile() throws Exception {
// default test
SdcSchemaFileImport.createAndSaveNodeSchemaFile("");
}
@Test(expected=NoSuchFileException.class)
public void testCreateAndSaveNodeSchemaFileOnap() throws Exception {
// default test
SdcSchemaFileImport.createAndSaveNodeSchemaFile("onap");
}
@Test(expected=NullPointerException.class)
public void testCreateAndSaveSchemaFileYaml() throws Exception {
SchemaZipFileEnum schemaZipFileEnum = null;
Object content = null;
// default test
SdcSchemaFileImport.createAndSaveSchemaFileYaml(schemaZipFileEnum, content);
}
@Test(expected=IllegalArgumentException.class)
public void testCreateAndSaveSchemaFileYaml_1() throws Exception {
String fileName = "";
String[] importFileList = new String[] { "" };
String collectionTitle = "";
Object content = null;
// default test
SdcSchemaFileImport.createAndSaveSchemaFileYaml(fileName, importFileList, collectionTitle, content);
}
}
|