Uses of Class
org.springframework.test.web.servlet.assertj.CookieMapAssert
Packages that use CookieMapAssert
Package
Description
AssertJ support for MockMvc.
AssertJ support for RestTestClient.
-
Uses of CookieMapAssert in org.springframework.test.web.servlet.assertj
Subclasses with type arguments of type CookieMapAssert in org.springframework.test.web.servlet.assertjModifier and TypeClassDescriptionclassAssertJ assertions that can be applied tocookies.Methods in org.springframework.test.web.servlet.assertj that return CookieMapAssertModifier and TypeMethodDescriptionCookieMapAssert.containsCookie(String name) Verify that the actual cookies contain a cookie with the givenname.CookieMapAssert.containsCookies(String... names) Verify that the actual cookies contain cookies with the givennames.MvcTestResultAssert.cookies()Return a new assertion object that uses the response's cookies as the object to test.CookieMapAssert.doesNotContainCookie(String name) Verify that the actual cookies do not contain a cookie with the givenname.CookieMapAssert.doesNotContainCookies(String... names) Verify that the actual cookies do not contain any cookies with the givennames.CookieMapAssert.hasCookieSatisfying(String name, Consumer<jakarta.servlet.http.Cookie> cookieRequirements) Verify that the actual cookies contain a cookie with the givennamethat satisfies the givencookieRequirements.Verify that the actual cookies contain a cookie with the givennamewhose domain is equal to the given one.Verify that the actual cookies contain a cookie with the givennamewhose max age is equal to the given one.Verify that the actual cookies contain a cookie with the givennamewhose path is equal to the given one.Verify that the actual cookies contain a cookie with the givennamewhose value is equal to the given one.CookieMapAssert.isHttpOnly(String name, boolean expected) Verify that the actual cookies contain a cookie with the givennamewhose http only flag is equal to the given one.Verify that the actual cookies contain a cookie with the givennamewhose secure flag is equal to the give one. -
Uses of CookieMapAssert in org.springframework.test.web.servlet.client.assertj
Methods in org.springframework.test.web.servlet.client.assertj that return CookieMapAssert