接口的使用
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的使用
修饰符和类型接口说明interface
AnApplicationContext
that additionally supports AssertJ style assertions.interface
AReactiveWebApplicationContext
that additionally supports AssertJ style assertions.interface
AWebApplicationContext
that 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 newApplicationContextAssertProvider
instance.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 newApplicationContextAssertProvider
instance. -
org.springframework.boot.test.context.runner中ApplicationContextAssertProvider的使用
修饰符和类型类说明class
AbstractApplicationContextRunner<SELF extends AbstractApplicationContextRunner<SELF,
C, A>, C extends ConfigurableApplicationContext, A extends ApplicationContextAssertProvider<C>> Utility design to run anApplicationContext
and provide AssertJ style assertions.