インターフェース AssertableWebApplicationContext
- すべてのスーパーインターフェース:
ApplicationContext
、ApplicationContextAssertProvider<ConfigurableWebApplicationContext>
、ApplicationEventPublisher
、org.assertj.core.api.AssertProvider<ApplicationContextAssert<ConfigurableWebApplicationContext>>
、AutoCloseableSE
、BeanFactory
、CloseableSE
、ConfigurableApplicationContext
、ConfigurableWebApplicationContext
、EnvironmentCapable
、HierarchicalBeanFactory
、Lifecycle
、ListableBeanFactory
、MessageSource
、ResourceLoader
、ResourcePatternResolver
、WebApplicationContext
public interface AssertableWebApplicationContext
extends ApplicationContextAssertProvider<ConfigurableWebApplicationContext>, ConfigurableWebApplicationContext
AssertJ スタイルのアサーションを追加でサポートする
WebApplicationContext
。既存のサーブレット Web アプリケーションコンテキストまたは起動に失敗したアプリケーションコンテキストを装飾するために使用できます。 詳細については、ApplicationContextAssertProvider
を参照してください。
- 導入:
- 2.0.0
- 作成者:
- Phillip Webb
- 関連事項:
フィールドサマリー
インターフェース org.springframework.beans.factory.BeanFactory から継承されたフィールド
FACTORY_BEAN_PREFIX
インターフェース 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
インターフェース org.springframework.web.context.ConfigurableWebApplicationContext から継承されたフィールド
APPLICATION_CONTEXT_ID_PREFIX, SERVLET_CONFIG_BEAN_NAME
インターフェース org.springframework.core.io.ResourceLoader から継承されたフィールド
CLASSPATH_URL_PREFIX
インターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたフィールド
CLASSPATH_ALL_URL_PREFIX
インターフェース org.springframework.web.context.WebApplicationContext から継承されたフィールド
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME
メソッドのサマリー
静的メソッド修飾子と型メソッド説明get
(SupplierSE<? extends ConfigurableWebApplicationContext> contextSupplier) 新しいAssertableWebApplicationContext
インスタンスを作成するファクトリメソッド。インターフェース org.springframework.context.ApplicationContext から継承されたメソッド
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
インターフェース org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider から継承されたメソッド
assertThat, close, getSourceApplicationContext, getSourceApplicationContext, getStartupFailure
インターフェース org.springframework.context.ApplicationEventPublisher から継承されたメソッド
publishEvent, publishEvent
インターフェース org.springframework.beans.factory.BeanFactory から継承されたメソッド
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
インターフェース org.springframework.context.ConfigurableApplicationContext から継承されたメソッド
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, removeApplicationListener, setApplicationStartup, setClassLoader, setEnvironment, setId, setParent
インターフェース org.springframework.web.context.ConfigurableWebApplicationContext から継承されたメソッド
getConfigLocations, getNamespace, getServletConfig, setConfigLocation, setConfigLocations, setNamespace, setServletConfig, setServletContext
インターフェース org.springframework.beans.factory.HierarchicalBeanFactory から継承されたメソッド
containsLocalBean, getParentBeanFactory
インターフェース org.springframework.beans.factory.ListableBeanFactory から継承されたメソッド
containsBeanDefinition, findAllAnnotationsOnBean, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation
インターフェース org.springframework.context.MessageSource から継承されたメソッド
getMessage, getMessage, getMessage
インターフェース org.springframework.core.io.ResourceLoader から継承されたメソッド
getClassLoader, getResource
インターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたメソッド
getResources
インターフェース org.springframework.web.context.WebApplicationContext から継承されたメソッド
getServletContext
メソッドの詳細
get
static AssertableWebApplicationContext get(SupplierSE<? extends ConfigurableWebApplicationContext> contextSupplier) 新しいAssertableWebApplicationContext
インスタンスを作成するファクトリメソッド。- パラメーター:
contextSupplier
- 完全に構成されたConfigurableWebApplicationContext
を返すか、コンテキストの開始に失敗した場合に例外をスローするサプライヤー。- 戻り値:
AssertableWebApplicationContext
インスタンス