public interface AssertableApplicationContext extends ApplicationContextAssertProvider<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
,
ApplicationContext
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_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, getStartupFailure
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
getEnvironment
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
getMessage, getMessage, getMessage
publishEvent, publishEvent
getResources
getClassLoader, getResource
static 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 © 2019 Pivotal Software, Inc.. All rights reserved.