Fixes #30249

  • Modified MockCookie to populate attributes using setAttribute.
  • Modified MockMvcHttpConnector to set sameSite using Cookie.getAttribute
  • Added tests

Comment From: sbrannen

Hi @justin-tay,

Could you please split this PR into two separate PRs to address these two topics?

  1. Update MockCookie to make use of Servlet 6.0 APIs and semantics for "attributes".
  2. Support SameSite attribute in MockMvcHttpConnector.

Comment From: sbrannen

Superseded by:

  • 30263

  • 30264