Fix test failure

This commit is contained in:
Stephane Nicoll 2015-11-25 22:05:57 +01:00
parent a0747c2148
commit 9882a53c7d
2 changed files with 5 additions and 3 deletions

View File

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

View File

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