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 values()
navigation method to AbstractMapAssert
#3291
Comments
I slightly modified the formatting of your code snippets to better visualize each method call. If I understand it correctly, the second snippet contains what you'd like to have. With assertThat(cpCard.getAltIds())
.values() // returns AbstractCollectionAssert after calling Map::values
.singleElement()
.returns(...); Would that satisfy your use case? |
in this particular case sure. I just grabbed Basically, I'm fine with whatever API that makes this simple ;) . |
Ok, so let's add |
values()
navigation method to AbstractMapAssert
Feature summary
Improve matching only MapAssert Value Properties.
Example
I feel like this could be one statement
It feels like I should be able to do something like. I tried a number of
extracting
but it all ended up more convoluted than 2 statements, or required a weaker static typingThe text was updated successfully, but these errors were encountered: