From c308bcbe7d06fa16f823cdffbb9889e76f22ecf9 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 --- .../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 7929e0ac7f..ba5fe4fa4a 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 @@ -304,14 +304,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 );