initial
This commit is contained in:
22
src/test/java/biz/redsoft/sample/SampleTests.java
Normal file
22
src/test/java/biz/redsoft/sample/SampleTests.java
Normal 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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user