接口的使用
org.springframework.boot.test.context.runner.ContextConsumer
使用ContextConsumer的程序包
程序包
说明
Test utilities to run application contexts for testing.
-
org.springframework.boot.test.context.runner中ContextConsumer的使用
修饰符和类型方法说明default ContextConsumer<C> ContextConsumer.andThen(ContextConsumer<? super C> after) Returns a composedContextConsumerthat performs, in sequence, this operation followed by theafteroperation.修饰符和类型方法说明default ContextConsumer<C> ContextConsumer.andThen(ContextConsumer<? super C> after) Returns a composedContextConsumerthat performs, in sequence, this operation followed by theafteroperation.AbstractApplicationContextRunner.prepare(ContextConsumer<? super A> consumer) Prepare a newApplicationContextbased on the current state of this loader.AbstractApplicationContextRunner.run(ContextConsumer<? super A> consumer) Create and refresh a newApplicationContextbased on the current state of this loader.