インターフェース AssertableApplicationContext
- すべてのスーパーインターフェース:
ApplicationContext、ApplicationContextAssertProvider<ConfigurableApplicationContext>、ApplicationEventPublisher、org.assertj.core.api.AssertProvider<ApplicationContextAssert<ConfigurableApplicationContext>>、AutoCloseableSE、BeanFactory、CloseableSE、ConfigurableApplicationContext、EnvironmentCapable、HierarchicalBeanFactory、Lifecycle、ListableBeanFactory、MessageSource、ResourceLoader、ResourcePatternResolver
public interface AssertableApplicationContext
extends ApplicationContextAssertProvider<ConfigurableApplicationContext>, ConfigurableApplicationContext
AssertJ スタイルのアサーションをさらにサポートする
ApplicationContext。既存のアプリケーションコンテキストまたは起動に失敗したアプリケーションコンテキストを装飾するために使用できます。 詳細については、ApplicationContextAssertProvider を参照してください。
- 導入:
- 2.0.0
- 作成者:
- Phillip Webb
- 関連事項:
フィールドのサマリー
インターフェース org.springframework.beans.factory.BeanFactory から継承されたフィールド
FACTORY_BEAN_PREFIX, FACTORY_BEAN_PREFIX_CHARインターフェース org.springframework.context.ConfigurableApplicationContext から継承されたフィールド
APPLICATION_STARTUP_BEAN_NAME, BOOTSTRAP_EXECUTOR_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.core.io.ResourceLoader から継承されたフィールド
CLASSPATH_URL_PREFIXインターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたフィールド
CLASSPATH_ALL_URL_PREFIXメソッドのサマリー
静的メソッド修飾子と型メソッド説明static AssertableApplicationContextget(SupplierSE<? extends ConfigurableApplicationContext> contextSupplier) 新しいAssertableApplicationContextインスタンスを作成するファクトリメソッド。static AssertableApplicationContextget(SupplierSE<? extends ConfigurableApplicationContext> contextSupplier, ClassSE<?>... additionalContextInterfaces) 新しいAssertableApplicationContextインスタンスを作成するファクトリメソッド。インターフェース 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, isClosed, refresh, registerShutdownHook, removeApplicationListener, setApplicationStartup, setClassLoader, setEnvironment, setId, setParentインターフェース 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
メソッドの詳細
get
static AssertableApplicationContext get(SupplierSE<? extends ConfigurableApplicationContext> contextSupplier) 新しいAssertableApplicationContextインスタンスを作成するファクトリメソッド。- パラメーター:
contextSupplier- 完全に構成されたConfigurableApplicationContextを返すか、コンテキストの開始に失敗した場合に例外をスローするサプライヤー。- 戻り値:
AssertableApplicationContextインスタンス
get
static AssertableApplicationContext get(SupplierSE<? extends ConfigurableApplicationContext> contextSupplier, ClassSE<?>... additionalContextInterfaces) 新しいAssertableApplicationContextインスタンスを作成するファクトリメソッド。- パラメーター:
contextSupplier- 完全に構成されたConfigurableApplicationContextを返すか、コンテキストの開始に失敗した場合に例外をスローするサプライヤー。additionalContextInterfaces- プロキシに追加する追加のコンテキストインターフェース- 戻り値:
AssertableApplicationContextインスタンス- 導入:
- 3.4.0