1 package org.onap.config.test;
3 import static org.onap.config.util.TestUtil.writeFile;
5 import org.junit.After;
6 import org.junit.Assert;
7 import org.junit.Before;
9 import org.onap.config.api.Configuration;
10 import org.onap.config.api.ConfigurationManager;
11 import org.onap.config.util.ConfigTestConstant;
12 import org.onap.config.util.TestUtil;
14 import java.io.IOException;
18 * Check loadorder for merge and overide. Higher loadorder takes precedence for override
19 * LoWer loadorder takes precedence for merge.
21 public class LoadOrderMergeAndOverrideTest {
23 public static final String NAMESPACE = "LoadOrderConfiguration";
26 public void setUp() throws IOException {
27 String data = "{name:\"SCM\"}";
32 public void testConfigurationWithPropertiesFileFormat(){
33 Configuration config = ConfigurationManager.lookup();
35 Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH ), "14");
36 Assert.assertEquals("5", config.getAsString(NAMESPACE, "artifact.length"));
37 Assert.assertEquals("56", config.getAsString(NAMESPACE, "artifact.size"));
43 public void tearDown() throws Exception {