This commit is contained in:
Victor Bellavin
2015-03-01 22:17:02 +03:00
commit 680eab32ed
41 changed files with 1225 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package biz.redsoft.sample;
import biz.redsoft.ncore.util.Misc;
import java.io.IOException;
import java.util.Arrays;
import java.util.Properties;
import org.junit.Assert;
import org.junit.Test;
/**
* @author Victor Bellavin
*/
public class SampleTests {
@Test
public void testProductName() throws IOException {
final Properties props = new Properties(System.getProperties());
Misc.loadProperties(props, Arrays.asList("ncore-properties.xml", "ncore-properties-local.xml"));
Assert.assertEquals(props.getProperty("product.name"), "sample");
}
}