You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: logback-access-reactor-netty/src/test/kotlin/io/github/dmitrysulman/logback/access/reactor/netty/AccessEventTests.kt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -379,14 +379,20 @@ class AccessEventTests {
379
379
}
380
380
381
381
@Test
382
-
fun`should not throw on null or blank cookie name`() {
382
+
fun`should not throw on null or blank or illegal cookie`() {
383
383
val mockContext = mockk<AccessContext>(relaxed =true)
384
384
val mockArgProvider = mockk<AccessLogArgProvider>(relaxed =true)
385
+
val cookieWithNullValue = mockk<DefaultCookie>()
386
+
every { cookieWithNullValue.value() } returns null
385
387
every { mockArgProvider.cookies() } returns
386
388
mapOf(
387
389
null to setOf(DefaultCookie(COOKIE, VALUE)),
388
390
"" to setOf(DefaultCookie(COOKIE, VALUE)),
389
391
"" to setOf(DefaultCookie(COOKIE, VALUE)),
392
+
"()<>@,;:" to setOf(DefaultCookie(COOKIE, VALUE)),
393
+
"empty" to emptySet(),
394
+
"null" to setOf(null),
395
+
"nullValue" to setOf(cookieWithNullValue),
390
396
"cookie1" to setOf(DefaultCookie("cookie1", "value1")),
0 commit comments