spring-framework / org.springframework.test.web.servlet.result / ModelResultMatchers / attributeHasFieldErrorCode

attributeHasFieldErrorCode

open fun attributeHasFieldErrorCode(name: String, fieldName: String, error: String): ResultMatcher

Assert a field error code for a model attribute using exact String match.

Since
4.1

open fun <T : Any> attributeHasFieldErrorCode(name: String, fieldName: String, matcher: Matcher<in String>): ResultMatcher

Assert a field error code for a model attribute using a org.hamcrest.Matcher.

Since
4.1