public class ViewResultMatchers extends 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 String> matcher)
Assert the selected view name with the given Hamcrest
Matcher . |
ResultMatcher |
name(String expectedViewName)
Assert the selected view name.
|
protected ViewResultMatchers()
MockMvcResultMatchers.view()
.public ResultMatcher name(Matcher<? super String> matcher)
Matcher
.public ResultMatcher name(String expectedViewName)