public final class ReactiveWebApplicationContextRunner extends AbstractApplicationContextRunner<ReactiveWebApplicationContextRunner,ConfigurableReactiveWebApplicationContext,AssertableReactiveWebApplicationContext>
ApplicationContext runner
for a
ConfigurableReactiveWebApplicationContext
.
See AbstractApplicationContextRunner
for details.
AbstractApplicationContextRunner.BeanRegistration<T>
Constructor and Description |
---|
ReactiveWebApplicationContextRunner()
Create a new
ReactiveWebApplicationContextRunner instance using a
AnnotationConfigReactiveWebApplicationContext as the underlying source. |
ReactiveWebApplicationContextRunner(Supplier<ConfigurableReactiveWebApplicationContext> contextFactory)
Create a new
ApplicationContextRunner instance using the specified
contextFactory as the underlying source. |
Modifier and Type | Method and Description |
---|---|
protected ReactiveWebApplicationContextRunner |
newInstance(Supplier<ConfigurableReactiveWebApplicationContext> contextFactory,
List<ApplicationContextInitializer<? super ConfigurableReactiveWebApplicationContext>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
ApplicationContext parent,
List<AbstractApplicationContextRunner.BeanRegistration<?>> beanRegistrations,
List<Configurations> configurations) |
run, with, withBean, withBean, withBean, withBean, withClassLoader, withConfiguration, withInitializer, withParent, withPropertyValues, withSystemProperties, withUserConfiguration
public ReactiveWebApplicationContextRunner()
ReactiveWebApplicationContextRunner
instance using a
AnnotationConfigReactiveWebApplicationContext
as the underlying source.public ReactiveWebApplicationContextRunner(Supplier<ConfigurableReactiveWebApplicationContext> contextFactory)
ApplicationContextRunner
instance using the specified
contextFactory
as the underlying source.contextFactory
- a supplier that returns a new instance on each callprotected ReactiveWebApplicationContextRunner newInstance(Supplier<ConfigurableReactiveWebApplicationContext> contextFactory, List<ApplicationContextInitializer<? super ConfigurableReactiveWebApplicationContext>> initializers, TestPropertyValues environmentProperties, TestPropertyValues systemProperties, ClassLoader classLoader, ApplicationContext parent, List<AbstractApplicationContextRunner.BeanRegistration<?>> beanRegistrations, List<Configurations> configurations)