blob: e5b42aa4051c1effc42d2144e5988fc59664ec56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package com.orbekk.same.config;
import static org.junit.Assert.*;
import org.junit.Test;
public class ConfigurationTest {
@Test public void testLoadConfiguration() {
String resources = "src/test/resources/";
System.setProperty(Configuration.configurationProperty,
resources + "com/orbekk/same/config/test.properties");
Configuration configuration = Configuration.load();
assertEquals("Test Value",
configuration.getProperty("testProperty"));
}
}
|