|
|
|
|
@ -60,12 +60,6 @@ class CacheOperationExpressionEvaluatorTests {
@@ -60,12 +60,6 @@ class CacheOperationExpressionEvaluatorTests {
|
|
|
|
|
private final AnnotationCacheOperationSource source = new AnnotationCacheOperationSource(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Collection<CacheOperation> getOps(String name) { |
|
|
|
|
Method method = ReflectionUtils.findMethod(AnnotatedClass.class, name, Object.class, Object.class); |
|
|
|
|
return this.source.getCacheOperations(method, AnnotatedClass.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testMultipleCachingSource() { |
|
|
|
|
Collection<CacheOperation> ops = getOps("multipleCaching"); |
|
|
|
|
@ -144,6 +138,12 @@ class CacheOperationExpressionEvaluatorTests {
@@ -144,6 +138,12 @@ class CacheOperationExpressionEvaluatorTests {
|
|
|
|
|
assertThat(value).isEqualTo(String.class.getName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Collection<CacheOperation> getOps(String name) { |
|
|
|
|
Method method = ReflectionUtils.findMethod(AnnotatedClass.class, name, Object.class, Object.class); |
|
|
|
|
return this.source.getCacheOperations(method, AnnotatedClass.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private EvaluationContext createEvaluationContext(Object result) { |
|
|
|
|
return createEvaluationContext(result, null); |
|
|
|
|
} |
|
|
|
|
|