Class CookieAssertions
java.lang.Object
org.springframework.test.web.support.AbstractCookieAssertions<ExchangeResult, RestTestClient.ResponseSpec>
org.springframework.test.web.servlet.client.CookieAssertions
public class CookieAssertions
extends AbstractCookieAssertions<ExchangeResult, RestTestClient.ResponseSpec>
Assertions on cookies of the response.
- Since:
- 7.0
- Author:
- Rob Worsnop
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertWithDiagnostics
(Runnable assertion) Subclasses must implement this to assert with diagnostics.protected MultiValueMap
<String, ResponseCookie> Subclasses must implement this to provide access to response cookies.Methods inherited from class AbstractCookieAssertions
doesNotExist, domain, domain, exists, getExchangeResult, httpOnly, maxAge, maxAge, partitioned, path, path, sameSite, secure, value, value, valueEquals
-
Method Details
-
getResponseCookies
Description copied from class:AbstractCookieAssertions
Subclasses must implement this to provide access to response cookies.- Specified by:
getResponseCookies
in classAbstractCookieAssertions<ExchangeResult, RestTestClient.ResponseSpec>
-
assertWithDiagnostics
Description copied from class:AbstractCookieAssertions
Subclasses must implement this to assert with diagnostics.- Specified by:
assertWithDiagnostics
in classAbstractCookieAssertions<ExchangeResult, RestTestClient.ResponseSpec>
-