Fix User Guide tests failing and triggereing other 2nd-level cache tests to fail as well
This commit is contained in:
parent
814d0c260b
commit
b0c27562f4
|
@ -58,7 +58,7 @@ public class SecondLevelCacheTest extends BaseEntityManagerFunctionalTestCase {
|
||||||
options.put( AvailableSettings.CACHE_REGION_FACTORY, EhCacheRegionFactory.class.getName() );
|
options.put( AvailableSettings.CACHE_REGION_FACTORY, EhCacheRegionFactory.class.getName() );
|
||||||
options.put( AvailableSettings.USE_QUERY_CACHE, Boolean.TRUE.toString() );
|
options.put( AvailableSettings.USE_QUERY_CACHE, Boolean.TRUE.toString() );
|
||||||
options.put( AvailableSettings.GENERATE_STATISTICS, Boolean.TRUE.toString() );
|
options.put( AvailableSettings.GENERATE_STATISTICS, Boolean.TRUE.toString() );
|
||||||
options.put( AvailableSettings.CACHE_REGION_PREFIX, "" );
|
//options.put( AvailableSettings.CACHE_REGION_PREFIX, "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -386,7 +386,7 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
||||||
integrator.disintegrate( this, serviceRegistry );
|
integrator.disintegrate( this, serviceRegistry );
|
||||||
integratorObserver.integrators.remove( integrator );
|
integratorObserver.integrators.remove( integrator );
|
||||||
}
|
}
|
||||||
serviceRegistry.destroy();
|
close();
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue