# Uses of Class
org.springframework.test.web.servlet.assertj.CookieMapAssert

Packages that use CookieMapAssert
Package
Description
org.springframework.test.web.servlet.assertj
AssertJ support for MockMvc.

## Uses of CookieMapAssert in org.springframework.test.web.servlet.assertj

Methods in org.springframework.test.web.servlet.assertj that return CookieMapAssert
Modifier and Type
Method
Description
`CookieMapAssert`
CookieMapAssert.`containsCookie(String name)`
Verify that the actual cookies contain a cookie with the given `name`.
`CookieMapAssert`
CookieMapAssert.`containsCookies(String... names)`
Verify that the actual cookies contain cookies with the given `names`.
`CookieMapAssert`
MvcTestResultAssert.`cookies()`
Return a new assertion object that uses the response's cookies as the object to test.
`CookieMapAssert`
CookieMapAssert.`doesNotContainCookie(String name)`
Verify that the actual cookies do not contain a cookie with the given `name`.
`CookieMapAssert`
CookieMapAssert.`doesNotContainCookies(String... names)`
Verify that the actual cookies do not contain any cookies with the given `names`.
`CookieMapAssert`
CookieMapAssert.`hasCookieSatisfying(String name, Consumer<Cookie> cookieRequirements)`
Verify that the actual cookies contain a cookie with the given `name` that satisfies the given `cookieRequirements`.
`CookieMapAssert`
CookieMapAssert.`hasDomain(String name, String expected)`
Verify that the actual cookies contain a cookie with the given `name` whose domain is equal to the given one.
`CookieMapAssert`
CookieMapAssert.`hasMaxAge(String name, Duration expected)`
Verify that the actual cookies contain a cookie with the given `name` whose max age is equal to the given one.
`CookieMapAssert`
CookieMapAssert.`hasPath(String name, String expected)`
Verify that the actual cookies contain a cookie with the given `name` whose path is equal to the given one.
`CookieMapAssert`
CookieMapAssert.`hasValue(String name, String expected)`
Verify that the actual cookies contain a cookie with the given `name` whose value is equal to the given one.
`CookieMapAssert`
CookieMapAssert.`isHttpOnly(String name, boolean expected)`
Verify that the actual cookies contain a cookie with the given `name` whose http only flag is equal to the given one.
`CookieMapAssert`
CookieMapAssert.`isSecure(String name, boolean expected)`
Verify that the actual cookies contain a cookie with the given `name` whose secure flag is equal to the give one.