Class ReactiveWebApplicationContextRunner
- java.lang.Object
- org.springframework.boot.test.context.runner.AbstractApplicationContextRunner<ReactiveWebApplicationContextRunner,org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext,AssertableReactiveWebApplicationContext>
- org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner
public final class ReactiveWebApplicationContextRunner extends AbstractApplicationContextRunner<ReactiveWebApplicationContextRunner,org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext,AssertableReactiveWebApplicationContext>
AnApplicationContext runnerfor aConfigurableReactiveWebApplicationContext.See
AbstractApplicationContextRunnerfor details.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description ReactiveWebApplicationContextRunner()Create a newReactiveWebApplicationContextRunnerinstance using aAnnotationConfigReactiveWebApplicationContextas the underlying source.ReactiveWebApplicationContextRunner(Supplier<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext> contextFactory)Create a newApplicationContextRunnerinstance using the specifiedcontextFactoryas the underlying source.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReactiveWebApplicationContextRunnernewInstance(Supplier<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext> contextFactory, List<org.springframework.context.ApplicationContextInitializer<? super org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>> initializers, TestPropertyValues environmentProperties, TestPropertyValues systemProperties, ClassLoader classLoader, org.springframework.context.ApplicationContext parent, List<org.springframework.boot.context.annotation.Configurations> configurations)Methods inherited from class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
run, with, withClassLoader, withConfiguration, withInitializer, withParent, withPropertyValues, withSystemProperties, withUserConfiguration
Constructor Detail
ReactiveWebApplicationContextRunner
public ReactiveWebApplicationContextRunner()
Create a newReactiveWebApplicationContextRunnerinstance using aAnnotationConfigReactiveWebApplicationContextas the underlying source.
ReactiveWebApplicationContextRunner
public ReactiveWebApplicationContextRunner(Supplier<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext> contextFactory)
Create a newApplicationContextRunnerinstance using the specifiedcontextFactoryas the underlying source.- Parameters:
contextFactory- a supplier that returns a new instance on each call
Method Detail
newInstance
protected ReactiveWebApplicationContextRunner newInstance(Supplier<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext> contextFactory, List<org.springframework.context.ApplicationContextInitializer<? super org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>> initializers, TestPropertyValues environmentProperties, TestPropertyValues systemProperties, ClassLoader classLoader, org.springframework.context.ApplicationContext parent, List<org.springframework.boot.context.annotation.Configurations> configurations)
- Specified by:
newInstancein classAbstractApplicationContextRunner<ReactiveWebApplicationContextRunner,org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext,AssertableReactiveWebApplicationContext>