public class HandlerResultMatchers extends Object
An instance of this class is typically accessed via
MockMvcResultMatchers.handler().
| Modifier | Constructor and Description |
|---|---|
protected |
HandlerResultMatchers()
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResultMatcher |
handlerType(Class<?> type)
Assert the type of the handler that processed the request.
|
ResultMatcher |
method(Method method)
Assert the controller method that processed the request.
|
ResultMatcher |
methodName(org.hamcrest.Matcher<? super String> matcher)
Assert the name of the controller method that processed the request with
the given Hamcrest
Matcher. |
ResultMatcher |
methodName(String name)
Assert the name of the controller method that processed the request.
|
protected HandlerResultMatchers()
MockMvcResultMatchers.handler().public ResultMatcher handlerType(Class<?> type)
public ResultMatcher methodName(org.hamcrest.Matcher<? super String> matcher)
Matcher.
Use of this method implies annotated controllers are processed with
RequestMappingHandlerMapping and RequestMappingHandlerAdapter.
public ResultMatcher methodName(String name)
Use of this method implies annotated controllers are processed with
RequestMappingHandlerMapping and RequestMappingHandlerAdapter.
public ResultMatcher method(Method method)
Use of this method implies annotated controllers are processed with
RequestMappingHandlerMapping and RequestMappingHandlerAdapter.