Refactor properties bootup, remove GlobalProperties and allow ServerConfig.loadFromProperties()

This commit is contained in:
rbygrave
2014-11-30 17:08:02 +13:00
parent fe65a0ccb9
commit 370267ab6f
105 changed files with 3772 additions and 3963 deletions
@@ -2,14 +2,11 @@ package com.avaje.tests.ddd.iud;
import junit.framework.TestCase;
import com.avaje.ebean.config.GlobalProperties;
import com.avaje.tests.model.ddd.DExhEntity;
public class TestDExhEntityEl extends TestCase {
public void test() {
GlobalProperties.put("classes", DExhEntity.class.toString());
// GlobalProperties.put("classes", DExhEntity.class.toString());
// Currency NZD = Currency.getInstance("NZD");
//
@@ -1,15 +1,7 @@
package com.avaje.tests.ddd.iud;
import java.io.IOException;
import java.util.Currency;
import junit.framework.TestCase;
import org.junit.Assert;
import com.avaje.ebean.Ebean;
import com.avaje.ebean.bean.EntityBean;
import com.avaje.ebean.config.GlobalProperties;
import com.avaje.ebean.text.json.JsonContext;
import com.avaje.ebeaninternal.api.SpiEbeanServer;
import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
@@ -17,13 +9,16 @@ import com.avaje.ebeaninternal.server.el.ElPropertyValue;
import com.avaje.tests.model.ddd.DPerson;
import com.avaje.tests.model.ivo.CMoney;
import com.avaje.tests.model.ivo.Money;
import junit.framework.TestCase;
import org.junit.Assert;
import java.io.IOException;
import java.util.Currency;
public class TestDPersonEl extends TestCase {
public void test() throws IOException {
GlobalProperties.put("classes", DPerson.class.toString());
Currency NZD = Currency.getInstance("NZD");
DPerson p = new DPerson();
@@ -2,15 +2,12 @@ package com.avaje.tests.ddd.iud;
import junit.framework.TestCase;
import com.avaje.ebean.config.GlobalProperties;
import com.avaje.tests.model.ddd.DPerson;
public class TestDPersonIUD extends TestCase {
public void test() {
GlobalProperties.put("classes", DPerson.class.toString());
// GlobalProperties.put("classes", DPerson.class.toString());
// Currency NZD = Currency.getInstance("NZD");
//