Raise JUnit coverage asdctool
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / main / SdcSchemaFileImportTest.java
1 package org.openecomp.sdc.asdctool.main;
2
3 import java.nio.file.NoSuchFileException;
4
5 import org.junit.Test;
6 import org.openecomp.sdc.asdctool.enums.SchemaZipFileEnum;
7
8 public class SdcSchemaFileImportTest {
9
10         private SdcSchemaFileImport createTestSubject() {
11                 return new SdcSchemaFileImport();
12         }
13
14         @Test(expected=NoSuchFileException.class)
15         public void testCreateAndSaveNodeSchemaFile() throws Exception {
16
17                 // default test
18                 SdcSchemaFileImport.createAndSaveNodeSchemaFile();
19         }
20
21         @Test(expected=NullPointerException.class)
22         public void testCreateAndSaveSchemaFileYaml() throws Exception {
23                 SchemaZipFileEnum schemaZipFileEnum = null;
24                 Object content = null;
25
26                 // default test
27                 SdcSchemaFileImport.createAndSaveSchemaFileYaml(schemaZipFileEnum, content);
28         }
29
30         @Test(expected=IllegalArgumentException.class)
31         public void testCreateAndSaveSchemaFileYaml_1() throws Exception {
32                 String fileName = "";
33                 String[] importFileList = new String[] { "" };
34                 String collectionTitle = "";
35                 Object content = null;
36
37                 // default test
38                 SdcSchemaFileImport.createAndSaveSchemaFileYaml(fileName, importFileList, collectionTitle, content);
39         }
40 }