mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
Revert "Update MockCookie#parse(String) validation to align with Javadoc"
This reverts commit 8b894933ae due to
code freeze on main.
See gh-37134
This commit is contained in:
@@ -118,15 +118,7 @@ class MockCookieTests {
|
||||
void parseNullHeader() {
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> MockCookie.parse(null))
|
||||
.withMessageContaining("Set-Cookie header must not be null or empty");
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@ValueSource(strings = {"", " "})
|
||||
void parseEmptyHeader(String header) {
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> MockCookie.parse(header))
|
||||
.withMessageContaining("Set-Cookie header must not be null or empty");
|
||||
.withMessageContaining("Set-Cookie header must not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user