We use ContextConsumer
to provide shared assertions using ApplicationContextRunner
. Sometimes, it is necessary to run those assertions and then run some more based on the AssertableApplicationContext
.
We could achieve this by implementing andThen
on the interface, inspired by java.util.function.Consumer#andThen
.