程序包 org.springframework.boot.test.context.runner
Test utilities to run application contexts for testing.
接口概要 接口 说明 ContextConsumer<C extends org.springframework.context.ApplicationContext> Callback interface used to process anApplicationContextwith the ability to throw a (checked) exception.类概要 类 说明 AbstractApplicationContextRunner<SELF extends AbstractApplicationContextRunner<SELF,C,A>,C extends org.springframework.context.ConfigurableApplicationContext,A extends ApplicationContextAssertProvider<C>> Utility design to run and anApplicationContextand provide AssertJ style assertions.ApplicationContextRunner AnApplicationContext runnerfor a standard, non-web environmentConfigurableApplicationContext.ReactiveWebApplicationContextRunner AnApplicationContext runnerfor aConfigurableReactiveWebApplicationContext.WebApplicationContextRunner AnApplicationContext runnerfor a Servlet basedConfigurableWebApplicationContext.