From 1a2a3dd02a5c4f302b54d8c59060a584341cbb09 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Tue, 6 Dec 2011 14:13:29 +0000 Subject: [PATCH] + update AJ tests --- .../cache/config/AnnotatedClassCacheableService.java | 4 ++-- .../springframework/cache/config/DefaultCacheableService.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.springframework.aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java b/org.springframework.aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java index 8a5a4da9e9..de138f5ecd 100644 --- a/org.springframework.aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java +++ b/org.springframework.aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java @@ -53,7 +53,7 @@ public class AnnotatedClassCacheableService implements CacheableService public void evictAll(Object arg1) { } - @CacheEvict(value = "default", beforeInvocation = false) + @CacheEvict(value = "default", beforeInvocation = true) public void evictEarly(Object arg1) { throw new RuntimeException("exception thrown - evict should still occur"); } @@ -62,7 +62,7 @@ public class AnnotatedClassCacheableService implements CacheableService public void evict(Object arg1, Object arg2) { } - @CacheEvict(value = "default", key = "#p0", beforeInvocation = false) + @CacheEvict(value = "default", key = "#p0", beforeInvocation = true) public void invalidateEarly(Object arg1, Object arg2) { throw new RuntimeException("exception thrown - evict should still occur"); } diff --git a/org.springframework.aspects/src/test/java/org/springframework/cache/config/DefaultCacheableService.java b/org.springframework.aspects/src/test/java/org/springframework/cache/config/DefaultCacheableService.java index 65ec02f293..3565a8a0f4 100644 --- a/org.springframework.aspects/src/test/java/org/springframework/cache/config/DefaultCacheableService.java +++ b/org.springframework.aspects/src/test/java/org/springframework/cache/config/DefaultCacheableService.java @@ -51,7 +51,7 @@ public class DefaultCacheableService implements CacheableService { public void evictAll(Object arg1) { } - @CacheEvict(value = "default", beforeInvocation = false) + @CacheEvict(value = "default", beforeInvocation = true) public void evictEarly(Object arg1) { throw new RuntimeException("exception thrown - evict should still occur"); } @@ -60,7 +60,7 @@ public class DefaultCacheableService implements CacheableService { public void evict(Object arg1, Object arg2) { } - @CacheEvict(value = "default", key = "#p0", beforeInvocation = false) + @CacheEvict(value = "default", key = "#p0", beforeInvocation = true) public void invalidateEarly(Object arg1, Object arg2) { throw new RuntimeException("exception thrown - evict should still occur"); }