From eb73985c9ed6e261d07a44be5897064b41d31996 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 21 Nov 2016 17:19:30 +0000 Subject: [PATCH] HHH-11271 Fix hidden failure in InfinispanRegionFactoryTestCase#testTimestampValidation (cherry picked from commit c308bcbe7d06fa16f823cdffbb9889e76f22ecf9) --- .../cache/infinispan/InfinispanRegionFactoryTestCase.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/InfinispanRegionFactoryTestCase.java b/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/InfinispanRegionFactoryTestCase.java index 23f6b7e674..75470a7d64 100644 --- a/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/InfinispanRegionFactoryTestCase.java +++ b/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/InfinispanRegionFactoryTestCase.java @@ -296,14 +296,16 @@ public class InfinispanRegionFactoryTestCase { @Test(expected = CacheException.class) public void testTimestampValidation() { + final String timestamps = "org.hibernate.cache.spi.UpdateTimestampsCache"; Properties p = createProperties(); final DefaultCacheManager manager = new DefaultCacheManager(GlobalConfigurationBuilder.defaultClusteredBuilder().build()); ConfigurationBuilder builder = new ConfigurationBuilder(); builder.clustering().cacheMode(CacheMode.INVALIDATION_SYNC); manager.defineConfiguration( DEF_TIMESTAMPS_RESOURCE, builder.build() ); try { - InfinispanRegionFactory factory = createRegionFactory(manager, p, null); - factory.start(null, p); + InfinispanRegionFactory factory = createRegionFactory( manager, p, null ); + factory.start( CacheTestUtil.sfOptionsForStart(), p ); + TimestampsRegionImpl region = (TimestampsRegionImpl) factory.buildTimestampsRegion( timestamps, p ); fail( "Should have failed saying that invalidation is not allowed for timestamp caches." ); } finally { TestingUtil.killCacheManagers( manager );