Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce rootCause() condition for use with the EngineTestKit #3839

Closed
2 tasks done
sbrannen opened this issue May 31, 2024 · 0 comments
Closed
2 tasks done

Introduce rootCause() condition for use with the EngineTestKit #3839

sbrannen opened this issue May 31, 2024 · 0 comments

Comments

@sbrannen
Copy link
Member

sbrannen commented May 31, 2024

Overview

TestExecutionResultConditions currently provides a cause() condition that matches if an exception's cause matches all supplied conditions.

However, unless I've overlooked something, there is currently no easy way to create a condition that matches if an exception's root cause matches all supplied conditions.

While writing tests for the Spring Framework, I had a need for a rootCause() condition and implemented that in a new EngineTestKitUtils utility class.

Deliverables

  • Introduce rootCause() condition in TestExecutionResultConditions.
  • Document in Release Notes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant