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 voidassertWithDiagnostics(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, getCookie, getExchangeResult, getMessage, getResponseSpec, httpOnly, maxAge, maxAge, partitioned, path, path, sameSite, secure, value, valueEquals
-
Method Details
-
getResponseCookies
Description copied from class:AbstractCookieAssertionsSubclasses must implement this to provide access to response cookies.- Specified by:
getResponseCookiesin classAbstractCookieAssertions<ExchangeResult, RestTestClient.ResponseSpec>
-
assertWithDiagnostics
Description copied from class:AbstractCookieAssertionsSubclasses must implement this to assert with diagnostics.- Specified by:
assertWithDiagnosticsin classAbstractCookieAssertions<ExchangeResult, RestTestClient.ResponseSpec>
-