File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
spring-core/src/test/java/org/springframework/core/annotation Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -801,6 +801,7 @@ public void synthesizeAnnotationWithAttributeAliasForAttributeOfDifferentType()
801801 public void synthesizeAnnotationWithAttributeAliasForWithMissingDefaultValues () throws Exception {
802802 AliasForWithMissingDefaultValues annotation =
803803 AliasForWithMissingDefaultValuesClass .class .getAnnotation (AliasForWithMissingDefaultValues .class );
804+ exception .expect (AnnotationConfigurationException .class );
804805 exception .expectMessage (startsWith ("Misconfigured aliases" ));
805806 exception .expectMessage (containsString (AliasForWithMissingDefaultValues .class .getName ()));
806807
@@ -817,6 +818,7 @@ public void synthesizeAnnotationWithAttributeAliasForWithMissingDefaultValues()
817818 public void synthesizeAnnotationWithAttributeAliasForAttributeWithDifferentDefaultValue () throws Exception {
818819 AliasForAttributeWithDifferentDefaultValue annotation =
819820 AliasForAttributeWithDifferentDefaultValueClass .class .getAnnotation (AliasForAttributeWithDifferentDefaultValue .class );
821+ exception .expect (AnnotationConfigurationException .class );
820822 exception .expectMessage (startsWith ("Misconfigured aliases" ));
821823 exception .expectMessage (containsString (AliasForAttributeWithDifferentDefaultValue .class .getName ()));
822824
You can’t perform that action at this time.
0 commit comments