Interface AssertableReactiveWebApplicationContext
- All Superinterfaces:
ApplicationContext
,ApplicationContextAssertProvider<ConfigurableReactiveWebApplicationContext>
,ApplicationEventPublisher
,org.assertj.core.api.AssertProvider<ApplicationContextAssert<ConfigurableReactiveWebApplicationContext>>
,AutoCloseable
,BeanFactory
,Closeable
,ConfigurableApplicationContext
,ConfigurableReactiveWebApplicationContext
,EnvironmentCapable
,HierarchicalBeanFactory
,Lifecycle
,ListableBeanFactory
,MessageSource
,ReactiveWebApplicationContext
,ResourceLoader
,ResourcePatternResolver
public interface AssertableReactiveWebApplicationContext
extends ApplicationContextAssertProvider<ConfigurableReactiveWebApplicationContext>, ConfigurableReactiveWebApplicationContext
A
ReactiveWebApplicationContext
that additionally supports AssertJ style
assertions. Can be used to decorate an existing reactive web application context or an
application context that failed to start.
See ApplicationContextAssertProvider
for more details.
- Since:
- 2.0.0
- Author:
- Phillip Webb
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
Fields inherited from interface org.springframework.context.ConfigurableApplicationContext
APPLICATION_STARTUP_BEAN_NAME, CONFIG_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_NAME
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionget
(Supplier<? extends ConfigurableReactiveWebApplicationContext> contextSupplier) Factory method to create a newAssertableReactiveWebApplicationContext
instance.Methods inherited from interface org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
Methods inherited from interface org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
assertThat, close, getSourceApplicationContext, getSourceApplicationContext, getStartupFailure
Methods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent, publishEvent
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, removeApplicationListener, setApplicationStartup, setClassLoader, setEnvironment, setId, setParent
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
Methods inherited from interface org.springframework.core.io.ResourceLoader
getClassLoader, getResource
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
-
Method Details
-
get
static AssertableReactiveWebApplicationContext get(Supplier<? extends ConfigurableReactiveWebApplicationContext> contextSupplier) Factory method to create a newAssertableReactiveWebApplicationContext
instance.- Parameters:
contextSupplier
- a supplier that will either return a fully configuredConfigurableReactiveWebApplicationContext
or throw an exception if the context fails to start.- Returns:
- a
AssertableReactiveWebApplicationContext
instance
-