mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 22:54:51 +00:00
HHH-8923 corrected test case
This commit is contained in:
parent
2464d2e214
commit
f95dfddd8c
@ -119,12 +119,11 @@ public void configure(Configuration cfg) {
|
||||
@Test
|
||||
public void testRedeployment() throws Exception {
|
||||
addEntityCheckCache( sessionFactory() );
|
||||
sessionFactory().close();
|
||||
bindToJndi = false;
|
||||
rebuildSessionFactory();
|
||||
|
||||
SessionFactoryImplementor sessionFactory = (SessionFactoryImplementor) configuration().buildSessionFactory( serviceRegistry() );
|
||||
addEntityCheckCache( sessionFactory );
|
||||
JndiInfinispanRegionFactory regionFactory = (JndiInfinispanRegionFactory) sessionFactory.getSettings().getRegionFactory();
|
||||
addEntityCheckCache( sessionFactory() );
|
||||
JndiInfinispanRegionFactory regionFactory = (JndiInfinispanRegionFactory) sessionFactory().getSettings().getRegionFactory();
|
||||
Cache cache = regionFactory.getCacheManager().getCache( "org.hibernate.test.cache.infinispan.functional.Item" );
|
||||
assertEquals( ComponentStatus.RUNNING, cache.getStatus() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user