From 649f4a32a60455822392a090b63c946a7445430f Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 28 Jul 2015 21:22:15 -0700 Subject: [PATCH] HHH-7573 : minor correction to test to work in 4.3 branch --- .../test/instrument/cases/AbstractExecutable.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/instrument/cases/AbstractExecutable.java b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/instrument/cases/AbstractExecutable.java index f650896100..f85f7fb9d7 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/instrument/cases/AbstractExecutable.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/instrument/cases/AbstractExecutable.java @@ -14,6 +14,7 @@ import java.util.List; import java.util.Map; import java.util.Properties; import javax.persistence.EntityManager; +import javax.persistence.EntityManagerFactory; import javax.persistence.SharedCacheMode; import javax.persistence.ValidationMode; import javax.persistence.spi.PersistenceUnitTransactionType; @@ -22,7 +23,6 @@ import org.hibernate.bytecode.spi.InstrumentedClassLoader; import org.hibernate.cfg.Environment; import org.hibernate.dialect.Dialect; import org.hibernate.jpa.AvailableSettings; -import org.hibernate.jpa.HibernateEntityManagerFactory; import org.hibernate.jpa.HibernatePersistenceProvider; import org.hibernate.jpa.boot.spi.Bootstrap; import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; @@ -33,7 +33,7 @@ import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; */ public abstract class AbstractExecutable implements Executable { private static final Dialect dialect = Dialect.getDialect(); - private HibernateEntityManagerFactory entityManagerFactory; + private EntityManagerFactory entityManagerFactory; private EntityManager em; @Override @@ -51,7 +51,7 @@ public abstract class AbstractExecutable implements Executable { buildPersistenceUnitDescriptor( getClass().getSimpleName() ), buildSettings(), classLoader - ).build().unwrap( HibernateEntityManagerFactory.class ); + ).build(); } @Override @@ -169,12 +169,7 @@ public abstract class AbstractExecutable implements Executable { } @Override - public ClassLoader getTempClassLoader() { - return null; - } - - @Override - public void pushClassTransformer(Collection entityClassNames) { + public void pushClassTransformer(List entityClassNames) { } }; }