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;
}

View File

@ -26,8 +26,6 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.cache.support.AbstractValueAdaptingCache;
import static org.hamcrest.core.Is.*;
import static org.junit.Assert.*;

View File

@ -23,7 +23,6 @@ import org.junit.rules.ExpectedException;
import org.springframework.cache.support.AbstractValueAdaptingCache;
/**
*
* @author Stephane Nicoll
*/
public abstract class AbstractValueAdaptingCacheTests<T extends AbstractValueAdaptingCache>

View File

@ -104,7 +104,7 @@ public class ConcurrentMapCacheManagerTests {
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

@ -62,7 +62,8 @@ public class ConcurrentMapCacheTests
return getCache(true);
}
@Override protected ConcurrentMapCache getCache(boolean allowNull) {
@Override
protected ConcurrentMapCache getCache(boolean allowNull) {
return allowNull ? this.cache : this.cacheNoNull;
}