This commit is contained in:
Stephane Nicoll
2017-02-20 16:29:05 +01:00
parent 1c74a1a0fe
commit 73909f41cb
7 changed files with 6 additions and 9 deletions

View File

@@ -102,7 +102,7 @@ public class CaffeineCacheManagerTests {
assertEquals("value1", cache1x.get("key1").get());
cache1x.put("key2", 2);
assertEquals(2, cache1x.get("key2").get());
cm.setAllowNullValues(true);
Cache cache1y = cm.getCache("c1");

View File

@@ -20,7 +20,6 @@ import com.github.benmanes.caffeine.cache.Caffeine;
import org.junit.Before;
import org.junit.Test;
import org.springframework.cache.AbstractCacheTests;
import org.springframework.cache.AbstractValueAdaptingCacheTests;
import org.springframework.cache.Cache;

View File

@@ -25,7 +25,6 @@ import javax.cache.spi.CachingProvider;
import org.junit.After;
import org.junit.Before;
import org.springframework.cache.AbstractCacheTests;
import org.springframework.cache.AbstractValueAdaptingCacheTests;
/**
@@ -70,7 +69,8 @@ public class JCacheEhCacheApiTests extends AbstractValueAdaptingCacheTests<JCach
return getCache(true);
}
@Override protected JCacheCache getCache(boolean allowNull) {
@Override
protected JCacheCache getCache(boolean allowNull) {
return allowNull ? this.cache : this.cacheNoNull;
}