Skip to content

Allow to chain ContextConsumer implementations #26723

@snicoll

Description

@snicoll

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions