spring-framework
5.3.39

# MockMvcResultMatchersDsl

class MockMvcResultMatchersDsl
Content copied to clipboard

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