class MockMvcResultMatchersDsl
Provide a MockMvcResultMatchers Kotlin DSL in order to be able to write idiomatic Kotlin code.
Author
Sebastien Deleuze
Since
5.2
fun content(matcher: ContentResultMatchers.() -> ResultMatcher): Unit |
|
fun cookie(cookieInit: CookieResultMatchers.() -> ResultMatcher): Unit |
|
fun flash(matcher: FlashAttributeResultMatchers.() -> ResultMatcher): Unit |
|
fun forwardedUrl(expectedUrl: String?): Unit |
|
fun forwardedUrlPattern(urlPattern: String): Unit |
|
fun forwardedUrlTemplate(urlTemplate: String, vararg uriVars: Any): Unit |
|
fun header(matcher: HeaderResultMatchers.() -> ResultMatcher): Unit |
|
fun <T> jsonPath(expression: String, matcher: Matcher<T>): Unit fun jsonPath(expression: String, vararg args: Any, block: JsonPathResultMatchers.() -> ResultMatcher): Unit |
|
fun match(matcher: ResultMatcher): Unit |
|
fun model(matcher: ModelResultMatchers.() -> ResultMatcher): Unit |
|
fun redirectedUrl(expectedUrl: String): Unit |
|
fun redirectedUrlPattern(redirectedUrlPattern: String): Unit |
|
fun request(matcher: RequestResultMatchers.() -> ResultMatcher): Unit |
|
fun status(matcher: StatusResultMatchers.() -> ResultMatcher): Unit |
|
fun view(matcher: ViewResultMatchers.() -> ResultMatcher): Unit |
|
fun xpath(expression: String, vararg args: Any, namespaces: Map<String, String>? = null, xpathInit: XpathResultMatchers.() -> ResultMatcher): Unit |