接口的使用
org.springframework.boot.test.context.assertj.AssertableApplicationContext
-
org.springframework.boot.test.context.assertj中AssertableApplicationContext的使用
修饰符和类型方法说明static AssertableApplicationContextAssertableApplicationContext.get(Supplier<? extends ConfigurableApplicationContext> contextSupplier) Factory method to create a newAssertableApplicationContextinstance.static AssertableApplicationContextAssertableApplicationContext.get(Supplier<? extends ConfigurableApplicationContext> contextSupplier, Class<?>... additionalContextInterfaces) Factory method to create a newAssertableApplicationContextinstance.