@ -120,13 +122,14 @@ public class AnnotationConfigApplicationContextTests {
@@ -120,13 +122,14 @@ public class AnnotationConfigApplicationContextTests {
fail("should have thrown NoSuchBeanDefinitionException, instead got: "+bean);
}catch(NoSuchBeanDefinitionExceptionex){
}
catch(NoSuchBeanDefinitionExceptionex){
assertThat(ex.getMessage(),containsString(
format("No unique bean of type [%s] is defined",targetType.getName())));
format("No qualifying bean of type [%s] is defined",targetType.getName())));
}
}
@ -137,10 +140,11 @@ public class AnnotationConfigApplicationContextTests {
@@ -137,10 +140,11 @@ public class AnnotationConfigApplicationContextTests {
try{
context.getBean(TestBean.class);
}catch(RuntimeExceptionex){
}
catch(NoSuchBeanDefinitionExceptionex){
assertThat(ex.getMessage(),
allOf(
containsString("No unique bean of type ["+TestBean.class.getName()+"] is defined"),
containsString("No qualifying bean of type ["+TestBean.class.getName()+"] is defined"),