testDecodingSingleCookieV0() — netty Function Reference
Architecture documentation for the testDecodingSingleCookieV0() function in ClientCookieDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f9182bf_0dfe_f571_46e9_dc5f8022131b["testDecodingSingleCookieV0()"] 2635e872_d46e_792f_9aed_dd9f06eec252["ClientCookieDecoderTest"] 2f9182bf_0dfe_f571_46e9_dc5f8022131b -->|defined in| 2635e872_d46e_792f_9aed_dd9f06eec252 style 2f9182bf_0dfe_f571_46e9_dc5f8022131b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java lines 38–59
@Test
public void testDecodingSingleCookieV0() {
String cookieString = "myCookie=myValue;expires="
+ DateFormatter.format(new Date(System.currentTimeMillis() + 50000))
+ ";path=/apathsomewhere;domain=.adomainsomewhere;secure;SameSite=None;Partitioned";
Cookie cookie = ClientCookieDecoder.STRICT.decode(cookieString);
assertNotNull(cookie);
assertEquals("myValue", cookie.value());
assertEquals(".adomainsomewhere", cookie.domain());
assertNotEquals(Long.MIN_VALUE, cookie.maxAge(),
"maxAge should be defined when parsing cookie " + cookieString);
assertTrue(cookie.maxAge() >= 40 && cookie.maxAge() <= 60,
"maxAge should be about 50ms when parsing cookie " + cookieString);
assertEquals("/apathsomewhere", cookie.path());
assertTrue(cookie.isSecure());
assertInstanceOf(DefaultCookie.class, cookie);
DefaultCookie c = (DefaultCookie) cookie;
assertEquals(SameSite.None, c.sameSite());
assertTrue(c.isPartitioned());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecodingSingleCookieV0() do?
testDecodingSingleCookieV0() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java.
Where is testDecodingSingleCookieV0() defined?
testDecodingSingleCookieV0() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free