public class ViewResultMatchers
extends java.lang.Object
An instance of this class is typically accessed via
MockMvcResultMatchers.view()
.
Modifier | Constructor and Description |
---|---|
protected |
ViewResultMatchers()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
ResultMatcher |
name(Matcher<? super java.lang.String> matcher)
Assert the selected view name with the given Hamcrest
Matcher . |
ResultMatcher |
name(java.lang.String expectedViewName)
Assert the selected view name.
|
protected ViewResultMatchers()
MockMvcResultMatchers.view()
.public ResultMatcher name(Matcher<? super java.lang.String> matcher)
Matcher
.public ResultMatcher name(java.lang.String expectedViewName)