Consistent catching of Throwable for introspection failures

Issue: SPR-12889
This commit is contained in:
Juergen Hoeller
2016-11-30 22:24:14 +01:00
parent f6b8b84df9
commit 01868096a3
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()));
}