@ -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");
@ -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;
@ -25,7 +25,6 @@ import javax.cache.spi.CachingProvider;
import org.junit.After;
/**
@ -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;
@ -26,8 +26,6 @@ import org.junit.Rule;
import org.junit.rules.ExpectedException;
import org.springframework.cache.support.AbstractValueAdaptingCache;
import static org.hamcrest.core.Is.*;
import static org.junit.Assert.*;
@ -23,7 +23,6 @@ import org.junit.rules.ExpectedException;
*
* @author Stephane Nicoll
*/
public abstract class AbstractValueAdaptingCacheTests<T extends AbstractValueAdaptingCache>
@ -104,7 +104,7 @@ public class ConcurrentMapCacheManagerTests {
@ -62,7 +62,8 @@ public class ConcurrentMapCacheTests
@Override protected ConcurrentMapCache getCache(boolean allowNull) {
protected ConcurrentMapCache getCache(boolean allowNull) {