ActivitySpec - Correcting logger messages
[sdc.git] / common / onap-common-configuration-management / onap-configuration-management-test / src / test / java / org / onap / config / test / JSONConfigTest.java
1 package org.onap.config.test;
2
3 import org.onap.config.util.TestUtil;
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.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 3
17  * Validate configuration with JSON file format with mode
18  */
19 public class JSONConfigTest {
20
21     public static final String NAMESPACE = "JSONConfig";
22
23     @Before
24     public void setUp() throws IOException {
25         String data = "{name:\"SCM\"}";
26         writeFile(data);
27     }
28
29     @Test
30     public void testConfigurationWithJSONFileFormat(){
31         validateConfiguraton(NAMESPACE);
32     }
33
34
35
36     @After
37     public void tearDown() throws Exception {
38         TestUtil.cleanUp();
39     }
40 }