@ -223,8 +222,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -223,8 +222,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
if(this.startupFailure!=null){
throwAssertionError(contextFailedToStartWhenExpecting("to get beans names with type:%n <%s>",type));
.as("Bean names of type <%s> from <%s>",type,getApplicationContext());
returnassertThat(getApplicationContext().getBeanNamesForType(type)).as("Bean names of type <%s> from <%s>",
type,getApplicationContext());
}
/**
@ -277,7 +276,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -277,7 +276,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -328,7 +327,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -328,7 +327,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
throwAssertionError(contextFailedToStartWhenExpecting("to contain a bean of name:%n <%s>",name));
}
Objectbean=findBean(name);
returnAssertions.assertThat(bean).as("Bean of name <%s> from <%s>",name,getApplicationContext());
returnassertThat(bean).as("Bean of name <%s> from <%s>",name,getApplicationContext());
}
/**
@ -360,8 +359,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -360,8 +359,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
"%nExpecting:%n <%s>%nto contain a bean of name:%n <%s> (%s)%nbut found:%n <%s> of type <%s>",
.as("Bean of name <%s> and type <%s> from <%s>",name,type,getApplicationContext());
returnassertThat((T)bean).as("Bean of name <%s> and type <%s> from <%s>",name,type,
getApplicationContext());
}
privateObjectfindBean(Stringname){
@ -411,8 +410,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -411,8 +410,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
if(this.startupFailure!=null){
throwAssertionError(contextFailedToStartWhenExpecting("to get beans of type:%n <%s>",type));
.as("Beans of type <%s> from <%s>",type,getApplicationContext());
returnassertThat(scope.getBeansOfType(getApplicationContext(),type)).as("Beans of type <%s> from <%s>",type,
getApplicationContext());
}
/**
@ -482,7 +481,6 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -482,7 +481,6 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -499,7 +497,6 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -499,7 +497,6 @@ public class ApplicationContextAssert<C extends ApplicationContext>