diff options
Diffstat (limited to 'common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java')
-rw-r--r-- | common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java new file mode 100644 index 0000000000..ae6fc3e7b1 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java @@ -0,0 +1,40 @@ +package org.onap.config.test; + +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +import static org.onap.config.util.TestUtil.validateConfiguraton; +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/14/2016. + * + * Scenario 2 + * Validate configuration with XML file format with mode + */ +public class XMLConfigTest { + + public static final String NAMESPACE = "XMLConfig"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithXMLFileFormat(){ + validateConfiguraton(NAMESPACE); + } + + + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} |