public interface AssertableApplicationContext extends ApplicationContextAssertProvider<org.springframework.context.ConfigurableApplicationContext>
ApplicationContext that additionally supports AssertJ style assertions. Can
be used to decorate and existing application context or an application context that
failed to start.
See ApplicationContextAssertProvider for more details.
ApplicationContextRunner,
ApplicationContext| Modifier and Type | Method and Description |
|---|---|
static AssertableApplicationContext |
get(Supplier<? extends org.springframework.context.ConfigurableApplicationContext> contextSupplier)
Factory method to create a new
AssertableApplicationContext instance. |
assertThat, close, get, getSourceApplicationContext, getSourceApplicationContext, getStartupFailuregetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchgetMessage, getMessage, getMessagepublishEvent, publishEventstatic AssertableApplicationContext get(Supplier<? extends org.springframework.context.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 © 2017 Pivotal Software, Inc.. All rights reserved.