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
Add anysatisfy for Map #1377
Comments
I agree, @almondtools would you like to contribute it? |
I can try, yet I have a question: I tried to understand the actual code for actual.entrySet().stream()
.forEach(entry -> entryRequirements.accept(entry.getKey(), entry.getValue()));
|
There was an improvement done for Since #1379 will impact |
The code for #1379 was already written as your answer arrived me. Fortunately I kept both changes separately. I think you can review this one. The Javadoc does yet not contain version information, I am not certain whether to add a hard version or whether there is a variable that is updated at the next release time. So if you do not want to adjust it yourself, give me a hint. |
You are too fast! 😆 Put a |
Notify me if I should package a pull request. |
You can create a PR when you feel the code is ready to be reviewed or want some feedback even if the implementation is partial. |
* code style * new (hopefully more feasible) scenario for anySatisfy example * new assertion idioms for exceptional cases
* code style * new (hopefully more feasible) scenario for anySatisfy example * new assertion idioms for exceptional cases
Summary
Allow to verify a bunch of assertions for any key-value pairs of a Map. This would serve the symmetry of the map assert. See #1030 (allSatisfy for Maps) and #889 (anySatisfy for Iterables).
Example
The text was updated successfully, but these errors were encountered: