spring-framework / org.springframework.test.web.servlet.result / HandlerResultMatchers / methodName

methodName

open fun methodName(matcher: Matcher<in String>): ResultMatcher

Assert the name of the controller method used to process the request using the given Hamcrest Matcher.

open fun methodName(name: String): ResultMatcher

Assert the name of the controller method used to process the request.