public interface AssertableWebApplicationContext extends ApplicationContextAssertProvider<ConfigurableWebApplicationContext>, WebApplicationContext
WebApplicationContext
that additionally supports AssertJ style assertions.
Can be used to decorate an existing servlet web application context or an application
context that failed to start.
See ApplicationContextAssertProvider
for more details.
WebApplicationContextRunner
,
WebApplicationContext
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
Modifier and Type | Method and Description |
---|---|
static AssertableWebApplicationContext |
get(Supplier<? extends ConfigurableWebApplicationContext> contextSupplier)
Factory method to create a new
AssertableWebApplicationContext instance. |
assertThat, close, get, getSourceApplicationContext, getSourceApplicationContext, getStartupFailure
getServletContext
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 AssertableWebApplicationContext get(Supplier<? extends ConfigurableWebApplicationContext> contextSupplier)
AssertableWebApplicationContext
instance.contextSupplier
- a supplier that will either return a fully configured
ConfigurableWebApplicationContext
or throw an exception if the context
fails to start.AssertableWebApplicationContext
instanceCopyright © 2019 Pivotal Software, Inc.. All rights reserved.