接口的使用
org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
程序包
说明
AssertJ support for ApplicationContexts.
Test utilities to run application contexts for testing.
-
org.springframework.boot.test.context.assertj中ApplicationContextAssertProvider的使用
修饰符和类型接口说明interfaceAnApplicationContextthat additionally supports AssertJ style assertions.interfaceAReactiveWebApplicationContextthat additionally supports AssertJ style assertions.interfaceAWebApplicationContextthat additionally supports AssertJ style assertions.修饰符和类型方法说明static <T extends ApplicationContextAssertProvider<C>,C extends ApplicationContext>
TApplicationContextAssertProvider.get(Class<T> type, Class<? extends C> contextType, Supplier<? extends C> contextSupplier) Factory method to create a newApplicationContextAssertProviderinstance.static <T extends ApplicationContextAssertProvider<C>,C extends ApplicationContext>
TApplicationContextAssertProvider.get(Class<T> type, Class<? extends C> contextType, Supplier<? extends C> contextSupplier, Class<?>... additionalContextInterfaces) Factory method to create a newApplicationContextAssertProviderinstance. -
org.springframework.boot.test.context.runner中ApplicationContextAssertProvider的使用
修饰符和类型类说明classAbstractApplicationContextRunner<SELF extends AbstractApplicationContextRunner<SELF,C, A>, C extends ConfigurableApplicationContext, A extends ApplicationContextAssertProvider<C>> Utility design to run anApplicationContextand provide AssertJ style assertions.