Skip to content

Commit 39cfe13

Browse files
committed
Polishing
1 parent 05a880e commit 39cfe13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spring-context/src/test/java/org/springframework/cache/interceptor/CacheOperationExpressionEvaluatorTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void testMultipleCachingEval() {
8686
AnnotatedClass target = new AnnotatedClass();
8787
Method method = ReflectionUtils.findMethod(
8888
AnnotatedClass.class, "multipleCaching", Object.class, Object.class);
89-
Object[] args = new Object[] {new Object(), new Object()};
89+
Object[] args = {"arg1", "arg2"};
9090
Collection<ConcurrentMapCache> caches = Collections.singleton(new ConcurrentMapCache("test"));
9191

9292
EvaluationContext evalCtx = this.eval.createEvaluationContext(caches, method, args,
@@ -155,7 +155,7 @@ private EvaluationContext createEvaluationContext(Object result, @Nullable BeanF
155155
AnnotatedClass target = new AnnotatedClass();
156156
Method method = ReflectionUtils.findMethod(
157157
AnnotatedClass.class, "multipleCaching", Object.class, Object.class);
158-
Object[] args = new Object[] {new Object(), new Object()};
158+
Object[] args = new Object[] {"arg1", "arg2"};
159159
Collection<ConcurrentMapCache> caches = Collections.singleton(new ConcurrentMapCache("test"));
160160
return this.eval.createEvaluationContext(
161161
caches, method, args, target, target.getClass(), method, result);

0 commit comments

Comments
 (0)