HHH-8732 minor test fix
This commit is contained in:
parent
27a53af302
commit
18561b8dfb
|
@ -1,6 +1,7 @@
|
||||||
package org.hibernate.test.cache;
|
package org.hibernate.test.cache;
|
||||||
|
|
||||||
import static org.hamcrest.CoreMatchers.equalTo;
|
import static org.hamcrest.CoreMatchers.equalTo;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
|
@ -8,7 +9,6 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.hamcrest.CoreMatchers;
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
import org.hibernate.cache.ehcache.internal.strategy.ItemValueExtractor;
|
import org.hibernate.cache.ehcache.internal.strategy.ItemValueExtractor;
|
||||||
|
@ -156,7 +156,7 @@ public class HibernateCacheTest extends BaseCoreFunctionalTestCase {
|
||||||
// check the version value in the cache...
|
// check the version value in the cache...
|
||||||
SecondLevelCacheStatistics slcs = sessionFactory().getStatistics()
|
SecondLevelCacheStatistics slcs = sessionFactory().getStatistics()
|
||||||
.getSecondLevelCacheStatistics( REGION_PREFIX + VersionedItem.class.getName() );
|
.getSecondLevelCacheStatistics( REGION_PREFIX + VersionedItem.class.getName() );
|
||||||
assertThat( slcs, CoreMatchers.<Object>notNullValue() );
|
assertNotNull( slcs );
|
||||||
final Map entries = slcs.getEntries();
|
final Map entries = slcs.getEntries();
|
||||||
Object entry = entries.get( item.getId() );
|
Object entry = entries.get( item.getId() );
|
||||||
Long cachedVersionValue;
|
Long cachedVersionValue;
|
||||||
|
|
Loading…
Reference in New Issue