Search in sources :

Example 1 with EntityManagerFactoryCallable

use of org.apache.openejb.assembler.classic.EntityManagerFactoryCallable in project tomee by apache.

the class JtaEntityManagerTest method isJpa21.

@Test
public void isJpa21() {
    final PersistenceUnitInfoImpl info = new PersistenceUnitInfoImpl();
    info.setProperties(new Properties());
    final ClassLoader loader = Thread.currentThread().getContextClassLoader();
    assertTrue(JtaEntityManager.isJPA21(new ReloadableEntityManagerFactory(loader, new EntityManagerFactoryCallable(Jpa21Provider.class.getName(), info, loader, new HashMap<ComparableValidationConfig, ValidatorFactory>(), false), info)));
}
Also used : EntityManagerFactoryCallable(org.apache.openejb.assembler.classic.EntityManagerFactoryCallable) HashMap(java.util.HashMap) Properties(java.util.Properties) ReloadableEntityManagerFactory(org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory) Test(org.junit.Test)

Aggregations

HashMap (java.util.HashMap)1 Properties (java.util.Properties)1 EntityManagerFactoryCallable (org.apache.openejb.assembler.classic.EntityManagerFactoryCallable)1 ReloadableEntityManagerFactory (org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory)1 Test (org.junit.Test)1