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