use of org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory 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<>(), false), info)));
}
Aggregations