MockMvcResultMatchersDsl

Provide a MockMvcResultMatchers Kotlin DSL in order to be able to write idiomatic Kotlin code.

Author

Sebastien Deleuze

Since

5.2

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun forwardedUrl(expectedUrl: String?)
Link copied to clipboard
fun forwardedUrlPattern(urlPattern: String)
Link copied to clipboard
fun forwardedUrlTemplate(urlTemplate: String, vararg uriVars: Any)
Link copied to clipboard
Link copied to clipboard
fun <T> jsonPath(expression: String, matcher: Matcher<T>)
fun jsonPath(expression: String, vararg args: Any?, dsl: JsonPathResultMatchersDsl.() -> Unit)
Link copied to clipboard
fun match(matcher: ResultMatcher)
Link copied to clipboard
fun matchAll(vararg matchers: ResultMatcher)
Link copied to clipboard
Link copied to clipboard
fun redirectedUrl(expectedUrl: String)
Link copied to clipboard
fun redirectedUrlPattern(redirectedUrlPattern: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun xpath(expression: String, vararg args: Any?, namespaces: Map<String, String>? = null, dsl: XpathResultMatchersDsl.() -> Unit)