public interface AssertableApplicationContext extends ApplicationContextAssertProvider<ConfigurableApplicationContext>, ConfigurableApplicationContext
ApplicationContext that additionally supports AssertJ style assertions. Can
be used to decorate an existing application context or an application context that
failed to start.
See ApplicationContextAssertProvider for more details.
ApplicationContextRunner,
ApplicationContextCONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAMEFACTORY_BEAN_PREFIXCLASSPATH_ALL_URL_PREFIXCLASSPATH_URL_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AssertableApplicationContext |
get(Supplier<? extends ConfigurableApplicationContext> contextSupplier)
Factory method to create a new
AssertableApplicationContext instance. |
assertThat, close, get, getSourceApplicationContext, getSourceApplicationContext, getStartupFailureaddApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setClassLoader, setEnvironment, setId, setParentgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchgetMessage, getMessage, getMessagepublishEvent, publishEventgetResourcesgetClassLoader, getResourcestatic AssertableApplicationContext get(Supplier<? extends ConfigurableApplicationContext> contextSupplier)
AssertableApplicationContext instance.contextSupplier - a supplier that will either return a fully configured
ConfigurableApplicationContext or throw an exception if the context fails
to start.AssertableApplicationContext instanceCopyright © 2020 Pivotal Software, Inc.. All rights reserved.