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

CookieResultMatchersDsl

class CookieResultMatchersDsl

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

Author
Sebastien Deleuze

Since
5.3

Functions

comment

fun comment(name: String, matcher: Matcher<String>): Unit
fun comment(name: String, comment: String): Unit

doesNotExist

fun doesNotExist(name: String): Unit

domain

fun domain(name: String, matcher: Matcher<String>): Unit
fun domain(name: String, domain: String): Unit

exists

fun exists(name: String): Unit

httpOnly

fun httpOnly(name: String, httpOnly: Boolean): Unit

maxAge

fun maxAge(name: String, matcher: Matcher<Int>): Unit
fun maxAge(name: String, maxAge: Int): Unit

path

fun path(name: String, matcher: Matcher<String>): Unit
fun path(name: String, path: String): Unit

secure

fun secure(name: String, secure: Boolean): Unit

value

fun value(name: String, matcher: Matcher<String>): Unit
fun value(name: String, expectedValue: String): Unit

version

fun version(name: String, matcher: Matcher<Int>): Unit
fun version(name: String, version: Int): Unit