1 package org.openecomp.sdc.asdctool.main;
3 import java.nio.file.NoSuchFileException;
6 import org.openecomp.sdc.asdctool.enums.SchemaZipFileEnum;
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=NullPointerException.class)
22 public void testCreateAndSaveSchemaFileYaml() throws Exception {
23 SchemaZipFileEnum schemaZipFileEnum = null;
24 Object content = null;
27 SdcSchemaFileImport.createAndSaveSchemaFileYaml(schemaZipFileEnum, content);
30 @Test(expected=IllegalArgumentException.class)
31 public void testCreateAndSaveSchemaFileYaml_1() throws Exception {
33 String[] importFileList = new String[] { "" };
34 String collectionTitle = "";
35 Object content = null;
38 SdcSchemaFileImport.createAndSaveSchemaFileYaml(fileName, importFileList, collectionTitle, content);