接口的使用
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 composedContextConsumer
that performs, in sequence, this operation followed by theafter
operation.修饰符和类型方法说明default ContextConsumer
<C> ContextConsumer.andThen
(ContextConsumer<? super C> after) Returns a composedContextConsumer
that performs, in sequence, this operation followed by theafter
operation.AbstractApplicationContextRunner.prepare
(ContextConsumer<? super A> consumer) Prepare a newApplicationContext
based on the current state of this loader.AbstractApplicationContextRunner.run
(ContextConsumer<? super A> consumer) Create and refresh a newApplicationContext
based on the current state of this loader.