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