use of org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl in project jbosstools-hibernate by jbosstools.
the class HibernateToolsPersistenceProviderTest method testCreateEntityManagerFactoryBuilder.
@Test
public void testCreateEntityManagerFactoryBuilder() {
Properties properties = new Properties();
properties.put("foo", "bar");
assertNull(HibernateToolsPersistenceProvider.createEntityManagerFactoryBuilder("barfoo", properties));
EntityManagerFactoryBuilderImpl entityManagerFactoryBuilder = HibernateToolsPersistenceProvider.createEntityManagerFactoryBuilder("foobar", properties);
assertNotNull(entityManagerFactoryBuilder);
assertEquals("bar", entityManagerFactoryBuilder.getConfigurationValues().get("foo"));
}
Aggregations