Polish
This commit is contained in:
@@ -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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user