mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix test LoaderTest
This commit is contained in:
@@ -12,6 +12,9 @@ public class LoaderTest {
|
||||
@Test
|
||||
public void load() {
|
||||
|
||||
String userName = System.getProperty("user.name");
|
||||
String userHome = System.getProperty("user.home");
|
||||
|
||||
Loader loader = new Loader();
|
||||
loader.loadProperties("test-properties/application.properties", Loader.Source.RESOURCE);
|
||||
loader.loadYaml("test-properties/application.yml", Loader.Source.RESOURCE);
|
||||
@@ -25,8 +28,8 @@ public class LoaderTest {
|
||||
assertEquals("Two", properties.getProperty("app.two"));
|
||||
|
||||
assertEquals("bart", properties.getProperty("eval.withDefault"));
|
||||
assertEquals("/home/rob/after", properties.getProperty("eval.home"));
|
||||
assertEquals("rob", properties.getProperty("eval.name"));
|
||||
assertEquals(userName, properties.getProperty("eval.name"));
|
||||
assertEquals(userHome + "/after", properties.getProperty("eval.home"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user