Author: jcosta(a)redhat.com
Date: 2009-04-27 08:09:49 -0400 (Mon, 27 Apr 2009)
New Revision: 16448
Modified:
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java
Log:
EJB-433 - Added a call to getProperties, to make sure that create-drop is set.
Modified:
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java
===================================================================
---
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java 2009-04-27
09:43:36 UTC (rev 16447)
+++
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java 2009-04-27
12:09:49 UTC (rev 16448)
@@ -21,6 +21,7 @@
public void testProgrammaticAPI() throws Exception {
Ejb3Configuration conf = new Ejb3Configuration();
conf.addAnnotatedClass( Cat.class );
+ conf.addProperties(getProperties());
EntityManagerFactory emf = conf.buildEntityManagerFactory();
EntityManager em = emf.createEntityManager();
Cat cat = new Cat();
@@ -39,6 +40,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