bc172b0eb7fb47b042c975f5842e1c6e3c23cf7b
[sdc.git] / common / openecomp-common-configuration-management / openecomp-configuration-management-test / src / test / java / org / openecomp / config / test / YAMLConfigTest.java
1 package org.openecomp.config.test;
2
3 import org.openecomp.config.ConfigurationUtils;
4 import org.openecomp.config.util.TestUtil;
5 import org.junit.After;
6 import org.junit.Before;
7 import org.junit.Test;
8
9 import java.io.IOException;
10
11 import static org.openecomp.config.util.TestUtil.validateConfiguraton;
12 import static org.openecomp.config.util.TestUtil.writeFile;
13
14 /**
15  * Created by ARR on 10/14/2016.
16  *
17  * Scenario 4
18  * Validate configuration with YAML file format with mode
19  */
20 public class YAMLConfigTest {
21
22     public static final String NAMESPACE = "YAMLConfig";
23
24     @Before
25     public void setUp() throws IOException {
26         String data = "{name:\"SCM\"}";
27         writeFile(data);
28     }
29
30     @Test
31     public void testConfigurationWithYAMLFileFormat(){
32         validateConfiguraton(NAMESPACE);
33     }
34
35
36
37     @After
38     public void tearDown() throws Exception {
39         TestUtil.cleanUp();
40     }
41 }