fixing simple failing test

This commit is contained in:
Strong Liu 2013-01-06 00:23:11 +08:00
parent b22b688ef9
commit 925d52c995
3 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -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

View File

@ -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() {