8af5ebf89d5ce9a63bf5074a025c6779812ac59e
[sdc.git] / common / openecomp-common-configuration-management / openecomp-configuration-management-test / src / test / java / org / openecomp / config / test / XMLConfigTest.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 2
18  * Validate configuration with XML file format with mode
19  */
20 public class XMLConfigTest {
21
22     public static final String NAMESPACE = "XMLConfig";
23
24     @Before
25     public void setUp() throws IOException {
26         String data = "{name:\"SCM\"}";
27         writeFile(data);
28     }
29
30     @Test
31     public void testConfigurationWithXMLFileFormat(){
32         validateConfiguraton(NAMESPACE);
33     }
34
35
36
37     @After
38     public void tearDown() throws Exception {
39         TestUtil.cleanUp();
40     }
41 }