Browse Source

Fix test failure

pull/929/head
Stephane Nicoll 10 years ago
parent
commit
9882a53c7d
  1. 5
      spring-aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java
  2. 3
      spring-aspects/src/test/java/org/springframework/cache/config/DefaultCacheableService.java

5
spring-aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java vendored

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
package org.springframework.cache.config;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.cache.annotation.CacheEvict;
@ -159,12 +160,12 @@ public class AnnotatedClassCacheableService implements CacheableService<Object> @@ -159,12 +160,12 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@Override
public Long throwChecked(Object arg1) throws Exception {
throw new UnsupportedOperationException(arg1.toString());
throw new IOException(arg1.toString());
}
@Override
public Long throwUnchecked(Object arg1) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException(arg1.toString());
}
// multi annotations

3
spring-aspects/src/test/java/org/springframework/cache/config/DefaultCacheableService.java vendored

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
package org.springframework.cache.config;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.cache.annotation.CacheEvict;
@ -166,7 +167,7 @@ public class DefaultCacheableService implements CacheableService<Long> { @@ -166,7 +167,7 @@ public class DefaultCacheableService implements CacheableService<Long> {
@Override
@Cacheable("testCache")
public Long throwChecked(Object arg1) throws Exception {
throw new Exception(arg1.toString());
throw new IOException(arg1.toString());
}
@Override

Loading…
Cancel
Save