Author: jcosta(a)redhat.com
Date: 2009-04-27 08:10:35 -0400 (Mon, 27 Apr 2009)
New Revision: 16450
Modified:
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java
Log:
EJB-433 - Added a call to getProperties, to make sure that create-drop is set.
Modified:
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java
===================================================================
---
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java 2009-04-27
12:10:02 UTC (rev 16449)
+++
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java 2009-04-27
12:10:35 UTC (rev 16450)
@@ -24,6 +24,7 @@
Ejb3Configuration conf = new Ejb3Configuration();
conf.addAnnotatedClass( Cat.class );
conf.addAnnotatedClass( Kitten.class );
+ conf.addProperties(getProperties());
EntityManagerFactory emf = conf.buildEntityManagerFactory();
EntityManager em = emf.createEntityManager();
Cat cat = new Cat();
@@ -42,6 +43,7 @@
public void testProgrammaticCfg() throws Exception {
Ejb3Configuration conf = new Ejb3Configuration();
conf.configure( "org/hibernate/ejb/test/ejb3configuration/hibernate.cfg.xml"
);
+ conf.addProperties(getProperties());
EntityManagerFactory emf = conf.buildEntityManagerFactory();
EntityManager em = emf.createEntityManager();
Cat cat = new Cat();
Show replies by date