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