Add containsBean(:String) method to the SpringApplicationContextIntegrationTestsSupport class.
This commit is contained in:
@@ -85,6 +85,13 @@ public abstract class SpringApplicationContextIntegrationTestsSupport extends In
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean containsBean(String beanName) {
|
||||
|
||||
ConfigurableApplicationContext applicationContext = requireApplicationContext();
|
||||
|
||||
return applicationContext.containsBean(beanName);
|
||||
}
|
||||
|
||||
protected <T> T getBean(Class<T> requiredType) {
|
||||
|
||||
ConfigurableApplicationContext applicationContext = requireApplicationContext();
|
||||
|
||||
Reference in New Issue
Block a user