Home / Function/ testDecodingSingleCookieV2() — netty Function Reference

testDecodingSingleCookieV2() — netty Function Reference

Architecture documentation for the testDecodingSingleCookieV2() function in ClientCookieDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  caee3169_6027_9d32_5bb4_ca2f225130fa["testDecodingSingleCookieV2()"]
  2635e872_d46e_792f_9aed_dd9f06eec252["ClientCookieDecoderTest"]
  caee3169_6027_9d32_5bb4_ca2f225130fa -->|defined in| 2635e872_d46e_792f_9aed_dd9f06eec252
  style caee3169_6027_9d32_5bb4_ca2f225130fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java lines 102–114

    @Test
    public void testDecodingSingleCookieV2() {
        String cookieString = "myCookie=myValue;max-age=50;path=/apathsomewhere;"
                + "domain=.adomainsomewhere;secure;comment=this is a comment;version=2;"
                + "commentURL=http://aurl.com;port=\"80,8080\";discard;";
        Cookie cookie = ClientCookieDecoder.STRICT.decode(cookieString);
        assertNotNull(cookie);
        assertEquals("myValue", cookie.value());
        assertEquals(".adomainsomewhere", cookie.domain());
        assertEquals(50, cookie.maxAge());
        assertEquals("/apathsomewhere", cookie.path());
        assertTrue(cookie.isSecure());
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecodingSingleCookieV2() do?
testDecodingSingleCookieV2() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java.
Where is testDecodingSingleCookieV2() defined?
testDecodingSingleCookieV2() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java at line 102.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free