class MockMvcResultMatchersDsl
Provide a MockMvcResultMatchers Kotlin DSL in order to be able to write idiomatic Kotlin code.
Author
Sebastien Deleuze
Since
5.2
content |
fun content(dsl: ContentResultMatchersDsl.() -> Unit): Unit |
cookie |
fun cookie(dsl: CookieResultMatchersDsl.() -> Unit): Unit |
flash |
fun flash(dsl: FlashAttributeResultMatchersDsl.() -> Unit): Unit |
forwardedUrl |
fun forwardedUrl(expectedUrl: String?): Unit |
forwardedUrlPattern |
fun forwardedUrlPattern(urlPattern: String): Unit |
forwardedUrlTemplate |
fun forwardedUrlTemplate(urlTemplate: String, vararg uriVars: Any): Unit |
header |
fun header(dsl: HeaderResultMatchersDsl.() -> Unit): Unit |
jsonPath |
fun <T> jsonPath(expression: String, matcher: Matcher<T>): Unit fun jsonPath(expression: String, vararg args: Any?, dsl: JsonPathResultMatchersDsl.() -> Unit): Unit |
match |
fun match(matcher: ResultMatcher): Unit |
model |
fun model(dsl: ModelResultMatchersDsl.() -> Unit): Unit |
redirectedUrl |
fun redirectedUrl(expectedUrl: String): Unit |
redirectedUrlPattern |
fun redirectedUrlPattern(redirectedUrlPattern: String): Unit |
request |
fun request(dsl: RequestResultMatchersDsl.() -> Unit): Unit |
status |
fun status(dsl: StatusResultMatchersDsl.() -> Unit): Unit |
view |
fun view(dsl: ViewResultMatchersDsl.() -> Unit): Unit |
xpath |
fun xpath(expression: String, vararg args: Any?, namespaces: Map<String, String>? = null, dsl: XpathResultMatchersDsl.() -> Unit): Unit |