From 18561b8dfb5384a1e90ae37e0f0501770bbf3de0 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Wed, 19 Mar 2014 16:04:21 -0400 Subject: [PATCH] HHH-8732 minor test fix --- .../java/org/hibernate/test/cache/HibernateCacheTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-ehcache/src/test/java/org/hibernate/test/cache/HibernateCacheTest.java b/hibernate-ehcache/src/test/java/org/hibernate/test/cache/HibernateCacheTest.java index df11aa2284..772cc95206 100644 --- a/hibernate-ehcache/src/test/java/org/hibernate/test/cache/HibernateCacheTest.java +++ b/hibernate-ehcache/src/test/java/org/hibernate/test/cache/HibernateCacheTest.java @@ -1,6 +1,7 @@ package org.hibernate.test.cache; import static org.hamcrest.CoreMatchers.equalTo; +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; @@ -8,7 +9,6 @@ import java.util.Date; import java.util.List; import java.util.Map; -import org.hamcrest.CoreMatchers; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.cache.ehcache.internal.strategy.ItemValueExtractor; @@ -156,7 +156,7 @@ public class HibernateCacheTest extends BaseCoreFunctionalTestCase { // check the version value in the cache... SecondLevelCacheStatistics slcs = sessionFactory().getStatistics() .getSecondLevelCacheStatistics( REGION_PREFIX + VersionedItem.class.getName() ); - assertThat( slcs, CoreMatchers.notNullValue() ); + assertNotNull( slcs ); final Map entries = slcs.getEntries(); Object entry = entries.get( item.getId() ); Long cachedVersionValue;