spring-framework / org.springframework.test.web.servlet.result / RequestResultMatchersDsl

RequestResultMatchersDsl

class RequestResultMatchersDsl

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

Author
Sebastien Deleuze

Since
5.3

Functions

asyncNotStarted

fun asyncNotStarted(): Unit

asyncResult

fun <T> asyncResult(matcher: Matcher<T>): Unit
fun asyncResult(expectedResult: Any?): Unit

asyncStarted

fun asyncStarted(): Unit

attribute

fun <T> attribute(name: String, matcher: Matcher<T>): Unit
fun attribute(name: String, expectedValue: Any?): Unit

sessionAttribute

fun <T> sessionAttribute(name: String, matcher: Matcher<T>): Unit
fun sessionAttribute(name: String, expectedValue: Any?): Unit

sessionAttributeDoesNotExist

fun sessionAttributeDoesNotExist(vararg names: String): Unit