mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
fixing simple failing test
This commit is contained in:
parent
b22b688ef9
commit
925d52c995
@ -40,7 +40,6 @@
|
||||
import org.hibernate.integrator.spi.Integrator;
|
||||
import org.hibernate.metamodel.spi.MetadataImplementor;
|
||||
import org.hibernate.service.spi.SessionFactoryServiceRegistry;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@ -101,7 +100,6 @@ public void disintegrate(
|
||||
}
|
||||
|
||||
@Test
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testCallbacks() {
|
||||
assertEquals( "observer not notified of creation", 1, observer.creationCount );
|
||||
assertEquals( "listener not notified of creation", 1, listener.initCount );
|
||||
|
@ -30,7 +30,6 @@ hibernate.connection.pool_size 5
|
||||
|
||||
hibernate.show_sql false
|
||||
hibernate.format_sql true
|
||||
|
||||
hibernate.max_fetch_depth 5
|
||||
|
||||
hibernate.cache.region_prefix hibernate.test
|
||||
|
@ -191,6 +191,9 @@ protected void configSessionFactoryBuilder(SessionFactoryBuilder sessionFactoryB
|
||||
if ( configuration.getEntityNotFoundDelegate() != null ) {
|
||||
sessionFactoryBuilder.with( configuration.getEntityNotFoundDelegate() );
|
||||
}
|
||||
if ( configuration.getSessionFactoryObserver() != null ){
|
||||
sessionFactoryBuilder.add( configuration.getSessionFactoryObserver() );
|
||||
}
|
||||
}
|
||||
|
||||
protected void rebuildSessionFactory() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user