File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
spring-context-support/src/test/java/org/springframework/cache/caffeine Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 28
28
import static org .assertj .core .api .Assertions .assertThatIllegalStateException ;
29
29
30
30
/**
31
+ * Tests for {@link CaffeineCache}.
32
+ *
31
33
* @author Ben Manes
32
34
* @author Stephane Nicoll
33
35
*/
34
- public class CaffeineCacheTests extends AbstractValueAdaptingCacheTests <CaffeineCache > {
36
+ class CaffeineCacheTests extends AbstractValueAdaptingCacheTests <CaffeineCache > {
35
37
36
38
private com .github .benmanes .caffeine .cache .Cache <Object , Object > nativeCache ;
37
39
@@ -40,12 +42,12 @@ public class CaffeineCacheTests extends AbstractValueAdaptingCacheTests<Caffeine
40
42
private CaffeineCache cacheNoNull ;
41
43
42
44
@ BeforeEach
43
- public void setUp () {
45
+ void setUp () {
44
46
nativeCache = Caffeine .newBuilder ().build ();
45
47
cache = new CaffeineCache (CACHE_NAME , nativeCache );
46
48
com .github .benmanes .caffeine .cache .Cache <Object , Object > nativeCacheNoNull
47
49
= Caffeine .newBuilder ().build ();
48
- cacheNoNull = new CaffeineCache (CACHE_NAME_NO_NULL , nativeCacheNoNull , false );
50
+ cacheNoNull = new CaffeineCache (CACHE_NAME_NO_NULL , nativeCacheNoNull , false );
49
51
}
50
52
51
53
@ Override
@@ -92,7 +94,7 @@ void testLoadingCacheGetWithWrongType() {
92
94
}
93
95
94
96
@ Test
95
- public void testPutIfAbsentNullValue () throws Exception {
97
+ void testPutIfAbsentNullValue () {
96
98
CaffeineCache cache = getCache ();
97
99
98
100
Object key = new Object ();
You can’t perform that action at this time.
0 commit comments