Consistent catching of Throwable for introspection failures

Issue: SPR-12889
(cherry picked from commit 0186809)
This commit is contained in:
Juergen Hoeller
2016-11-30 22:24:14 +01:00
parent cbc512f3be
commit 17f7f1fc15
3 changed files with 39 additions and 41 deletions

View File

@@ -186,7 +186,7 @@ public class ComposedRepeatableAnnotationsTests {
private void expectNonRepeatableAnnotation() {
exception.expect(IllegalArgumentException.class);
exception.expectMessage(startsWith("annotationType must be a repeatable annotation"));
exception.expectMessage(startsWith("Annotation type must be a repeatable annotation"));
exception.expectMessage(containsString("failed to resolve container type for"));
exception.expectMessage(containsString(NonRepeatable.class.getName()));
}