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