MockMvcResultMatchersDsl

class MockMvcResultMatchersDsl

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

Author

Sebastien Deleuze

Since

5.2

Functions

content
Link copied to clipboard
fun content(dsl: ContentResultMatchersDsl.() -> Unit)
cookie
Link copied to clipboard
fun cookie(dsl: CookieResultMatchersDsl.() -> Unit)
flash
Link copied to clipboard
fun flash(dsl: FlashAttributeResultMatchersDsl.() -> Unit)
forwardedUrl
Link copied to clipboard
fun forwardedUrl(expectedUrl: String?)
forwardedUrlPattern
Link copied to clipboard
fun forwardedUrlPattern(urlPattern: String)
forwardedUrlTemplate
Link copied to clipboard
fun forwardedUrlTemplate(urlTemplate: String, vararg uriVars: Any)
header
Link copied to clipboard
fun header(dsl: HeaderResultMatchersDsl.() -> Unit)
jsonPath
Link copied to clipboard
fun <T> jsonPath(expression: String, matcher: Matcher<T>)
fun jsonPath(expression: String, vararg args: Any?, dsl: JsonPathResultMatchersDsl.() -> Unit)
match
Link copied to clipboard
fun match(matcher: ResultMatcher)
model
Link copied to clipboard
fun model(dsl: ModelResultMatchersDsl.() -> Unit)
redirectedUrl
Link copied to clipboard
fun redirectedUrl(expectedUrl: String)
redirectedUrlPattern
Link copied to clipboard
fun redirectedUrlPattern(redirectedUrlPattern: String)
request
Link copied to clipboard
fun request(dsl: RequestResultMatchersDsl.() -> Unit)
status
Link copied to clipboard
fun status(dsl: StatusResultMatchersDsl.() -> Unit)
view
Link copied to clipboard
fun view(dsl: ViewResultMatchersDsl.() -> Unit)
xpath
Link copied to clipboard
fun xpath(expression: String, vararg args: Any?, namespaces: Map<String, String>? = null, dsl: XpathResultMatchersDsl.() -> Unit)