1 package org.openecomp.sdc.asdctool.main;
4 import org.openecomp.sdc.asdctool.enums.SchemaZipFileEnum;
6 import java.nio.file.NoSuchFileException;
8 public class SdcSchemaFileImportTest {
10 private SdcSchemaFileImport createTestSubject() {
11 return new SdcSchemaFileImport();
14 @Test(expected=NoSuchFileException.class)
15 public void testCreateAndSaveNodeSchemaFile() throws Exception {
18 SdcSchemaFileImport.createAndSaveNodeSchemaFile("");
21 @Test(expected=NoSuchFileException.class)
22 public void testCreateAndSaveNodeSchemaFileOnap() throws Exception {
25 SdcSchemaFileImport.createAndSaveNodeSchemaFile("onap");
28 @Test(expected=NullPointerException.class)
29 public void testCreateAndSaveSchemaFileYaml() throws Exception {
30 SchemaZipFileEnum schemaZipFileEnum = null;
31 Object content = null;
34 SdcSchemaFileImport.createAndSaveSchemaFileYaml(schemaZipFileEnum, content);
37 @Test(expected=IllegalArgumentException.class)
38 public void testCreateAndSaveSchemaFileYaml_1() throws Exception {
40 String[] importFileList = new String[] { "" };
41 String collectionTitle = "";
42 Object content = null;
45 SdcSchemaFileImport.createAndSaveSchemaFileYaml(fileName, importFileList, collectionTitle, content);