|
|
|
@ -16,6 +16,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.cache.config; |
|
|
|
package org.springframework.cache.config; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.UUID; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
|
|
|
|
@ -290,6 +291,7 @@ public abstract class AbstractAnnotationTests { |
|
|
|
service.throwChecked(arg); |
|
|
|
service.throwChecked(arg); |
|
|
|
fail("Excepted exception"); |
|
|
|
fail("Excepted exception"); |
|
|
|
} catch (Exception ex) { |
|
|
|
} catch (Exception ex) { |
|
|
|
|
|
|
|
assertEquals("Wrong exception type", IOException.class, ex.getClass()); |
|
|
|
assertEquals(arg, ex.getMessage()); |
|
|
|
assertEquals(arg, ex.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -299,9 +301,8 @@ public abstract class AbstractAnnotationTests { |
|
|
|
service.throwUnchecked(Long.valueOf(1)); |
|
|
|
service.throwUnchecked(Long.valueOf(1)); |
|
|
|
fail("Excepted exception"); |
|
|
|
fail("Excepted exception"); |
|
|
|
} catch (RuntimeException ex) { |
|
|
|
} catch (RuntimeException ex) { |
|
|
|
assertTrue("Excepted different exception type and got " + ex.getClass(), |
|
|
|
assertEquals("Wrong exception type", UnsupportedOperationException.class, ex.getClass()); |
|
|
|
ex instanceof UnsupportedOperationException); |
|
|
|
assertEquals("1", ex.getMessage()); |
|
|
|
// expected
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|