mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
32 lines
673 B
Java
32 lines
673 B
Java
package com.avaje.tests.unitinternal;
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
import org.junit.Assert;
|
|
|
|
import com.avaje.ebean.config.GlobalProperties;
|
|
|
|
public class TestGlobalPropsLoader extends TestCase {
|
|
|
|
public void test() {
|
|
|
|
// this confused someone when looking at ebean.properties
|
|
// so disabling this test
|
|
|
|
boolean t = false;
|
|
if (t){
|
|
|
|
// removing from ebean.properties
|
|
// ebean.properties.loader=com.avaje.tests.unitinternal.PropsLoader
|
|
|
|
GlobalProperties.put("ebean.ddl.run", "false");
|
|
|
|
String s = GlobalProperties.get("robtest", null);
|
|
Assert.assertEquals("robvalue", s);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|