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?
to your account
Lea Farmer opened SPR-11971 and commented
It would be useful to have the ability to check that if a field has an error on it, then what that specific error is.
Currently ModelResultMatchers only has methods to assert whether an attribute has field errors.
I propose adding a new method
attributeHasFieldError(final String name, final String field, final String error)
This would allow users to assert when a specific error text/key is present.
Referenced from: commits 85cdb91
The text was updated successfully, but these errors were encountered:
Lea Farmer commented
I have added a pull request here: #588
Sorry, something went wrong.
No branches or pull requests