Class ApplicationContextRunner
java.lang.Object
org.springframework.boot.test.context.runner.AbstractApplicationContextRunner<ApplicationContextRunner,ConfigurableApplicationContext,AssertableApplicationContext>
  
org.springframework.boot.test.context.runner.ApplicationContextRunner
public class ApplicationContextRunner
extends AbstractApplicationContextRunner<ApplicationContextRunner,ConfigurableApplicationContext,AssertableApplicationContext>  
An 
ApplicationContext runner for a standard,
 non-web environment ConfigurableApplicationContext.
 
 See AbstractApplicationContextRunner for details.
- Since:
- 2.0.0
- Author:
- Stephane Nicoll, Andy Wilkinson, Phillip Webb
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.boot.test.context.runner.AbstractApplicationContextRunnerAbstractApplicationContextRunner.BeanRegistration<T>, AbstractApplicationContextRunner.RunnerConfiguration<C extends ConfigurableApplicationContext>
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a newApplicationContextRunnerinstance using anAnnotationConfigApplicationContextas the underlying source.ApplicationContextRunner(Supplier<ConfigurableApplicationContext> contextFactory) Create a newApplicationContextRunnerinstance using the specifiedcontextFactoryas the underlying source.ApplicationContextRunner(Supplier<ConfigurableApplicationContext> contextFactory, Class<?>... additionalContextInterfaces) Create a newApplicationContextRunnerinstance using the specifiedcontextFactoryas the underlying source.
- 
Method SummaryMethods inherited from class org.springframework.boot.test.context.runner.AbstractApplicationContextRunnerprepare, run, with, withAllowBeanDefinitionOverriding, withAllowCircularReferences, withBean, withBean, withBean, withBean, withClassLoader, withConfiguration, withInitializer, withParent, withPropertyValues, withSystemProperties, withUserConfiguration
- 
Constructor Details- 
ApplicationContextRunnerpublic ApplicationContextRunner()Create a newApplicationContextRunnerinstance using anAnnotationConfigApplicationContextas the underlying source.
- 
ApplicationContextRunnerCreate a newApplicationContextRunnerinstance using the specifiedcontextFactoryas the underlying source.- Parameters:
- contextFactory- a supplier that returns a new instance on each call be added to the application context proxy
 
- 
ApplicationContextRunnerpublic ApplicationContextRunner(Supplier<ConfigurableApplicationContext> contextFactory, Class<?>... additionalContextInterfaces) Create a newApplicationContextRunnerinstance using the specifiedcontextFactoryas the underlying source.- Parameters:
- contextFactory- a supplier that returns a new instance on each call
- additionalContextInterfaces- any additional application context interfaces to be added to the application context proxy
- Since:
- 3.4.0
 
 
-