fixing simple failing test
This commit is contained in:
parent
b22b688ef9
commit
925d52c995
|
@ -40,7 +40,6 @@ import org.hibernate.event.spi.EventType;
|
|||
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 class CallbackTest extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
|
||||
@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 @@ public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase {
|
|||
if ( configuration.getEntityNotFoundDelegate() != null ) {
|
||||
sessionFactoryBuilder.with( configuration.getEntityNotFoundDelegate() );
|
||||
}
|
||||
if ( configuration.getSessionFactoryObserver() != null ){
|
||||
sessionFactoryBuilder.add( configuration.getSessionFactoryObserver() );
|
||||
}
|
||||
}
|
||||
|
||||
protected void rebuildSessionFactory() {
|
||||
|
|
Loading…
Reference in New Issue