mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor properties bootup, remove GlobalProperties and allow ServerConfig.loadFromProperties()
This commit is contained in:
@@ -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");
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user