@ -38,7 +38,7 @@ public class AspectJCacheAnnotationTests extends AbstractCacheAnnotationTests {
@@ -38,7 +38,7 @@ public class AspectJCacheAnnotationTests extends AbstractCacheAnnotationTests {
@ -48,7 +50,7 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -48,7 +50,7 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@Override
@Cacheable(cacheNames="testCache",sync=true)
publicObjectcacheSync(Objectarg1){
returncounter.getAndIncrement();
returnthis.counter.getAndIncrement();
}
@Override
@ -68,13 +70,14 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -68,13 +70,14 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@ -83,11 +86,6 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -83,11 +86,6 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
thrownewRuntimeException("exception thrown - evict should NOT occur");
@ -95,68 +93,68 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -95,68 +93,68 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@ -203,25 +201,25 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -203,25 +201,25 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@ -51,7 +53,7 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -51,7 +53,7 @@ public class DefaultCacheableService implements CacheableService<Long> {
@Override
@Cacheable(cacheNames="testCache",sync=true)
publicLongcacheSync(Objectarg1){
returncounter.getAndIncrement();
returnthis.counter.getAndIncrement();
}
@Override
@ -61,8 +63,8 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -61,8 +63,8 @@ public class DefaultCacheableService implements CacheableService<Long> {
}
@Override
@CacheEvict("testCache")
publicvoidinvalidate(Objectarg1){
@CacheEvict(cacheNames="testCache",key="#p0")
publicvoidevict(Objectarg1,Objectarg2){
}
@Override
@ -71,11 +73,6 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -71,11 +73,6 @@ public class DefaultCacheableService implements CacheableService<Long> {
thrownewRuntimeException("exception thrown - evict should NOT occur");
@ -83,26 +80,26 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -83,26 +80,26 @@ public class DefaultCacheableService implements CacheableService<Long> {
@ -114,55 +111,55 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -114,55 +111,55 @@ public class DefaultCacheableService implements CacheableService<Long> {
@ -174,13 +171,13 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -174,13 +171,13 @@ public class DefaultCacheableService implements CacheableService<Long> {
@Override
@Cacheable("testCache")
publicLongnullValue(Objectarg1){
nullInvocations.incrementAndGet();
this.nullInvocations.incrementAndGet();
returnnull;
}
@Override
publicNumbernullInvocations(){
returnnullInvocations.get();
returnthis.nullInvocations.get();
}
@Override
@ -212,25 +209,25 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -212,25 +209,25 @@ public class DefaultCacheableService implements CacheableService<Long> {
@ -76,6 +81,26 @@ public class JCacheEhCacheAnnotationTests extends AbstractCacheAnnotationTests {
@@ -76,6 +81,26 @@ public class JCacheEhCacheAnnotationTests extends AbstractCacheAnnotationTests {
@ -87,7 +112,9 @@ public class JCacheEhCacheAnnotationTests extends AbstractCacheAnnotationTests {
@@ -87,7 +112,9 @@ public class JCacheEhCacheAnnotationTests extends AbstractCacheAnnotationTests {
@ -515,127 +549,132 @@ public abstract class AbstractCacheAnnotationTests {
@@ -515,127 +549,132 @@ public abstract class AbstractCacheAnnotationTests {
@ -36,6 +36,7 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -36,6 +36,7 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@ -75,8 +76,8 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -75,8 +76,8 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
}
@Override
@CacheEvict("testCache")
publicvoidinvalidate(Objectarg1){
@CacheEvict(cacheNames="testCache",key="#p0")
publicvoidevict(Objectarg1,Objectarg2){
}
@Override
@ -85,11 +86,6 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -85,11 +86,6 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
thrownewRuntimeException("exception thrown - evict should NOT occur");
@ -97,13 +93,13 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -97,13 +93,13 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
thrownewRuntimeException("exception thrown - evict should still occur");
}
@ -238,4 +234,5 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@@ -238,4 +234,5 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@ -37,7 +37,7 @@ public class CacheAdviceNamespaceTests extends AbstractCacheAnnotationTests {
@@ -37,7 +37,7 @@ public class CacheAdviceNamespaceTests extends AbstractCacheAnnotationTests {
@ -63,8 +63,8 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -63,8 +63,8 @@ public class DefaultCacheableService implements CacheableService<Long> {
}
@Override
@CacheEvict("testCache")
publicvoidinvalidate(Objectarg1){
@CacheEvict(cacheNames="testCache",key="#p0")
publicvoidevict(Objectarg1,Objectarg2){
}
@Override
@ -73,11 +73,6 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -73,11 +73,6 @@ public class DefaultCacheableService implements CacheableService<Long> {
thrownewRuntimeException("exception thrown - evict should NOT occur");
@ -85,13 +80,13 @@ public class DefaultCacheableService implements CacheableService<Long> {
@@ -85,13 +80,13 @@ public class DefaultCacheableService implements CacheableService<Long> {