EJB-433 - Added a call to getProperties, to make sure that create-drop is set.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16450 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
29731cbf94
commit
062139460c
|
@ -24,6 +24,7 @@ public class ProgrammaticConfTest extends junit.framework.TestCase {
|
|||
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 class ProgrammaticConfTest extends junit.framework.TestCase {
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue