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