Skip to content

Update MockCookie#parse(String) validation #37136

Description

@ngocnhan-tran1996

* Factory method that parses the value of the supplied "Set-Cookie" header.
* @param setCookieHeader the "Set-Cookie" value; never {@code null} or empty
* @return the created cookie

Based on the Javadoc, I think it should throw Set-Cookie header must not be null or empty instead of Invalid Set-Cookie header '' when setCookieHeader is empty.

See 8b89493 and 27a85be for the related changes.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions