Home / Function/ testDecodingMultipleCookies() — netty Function Reference

testDecodingMultipleCookies() — netty Function Reference

Architecture documentation for the testDecodingMultipleCookies() function in ServerCookieDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f1ec761d_e9cd_c959_bb00_4348f73e79e3["testDecodingMultipleCookies()"]
  d0a674bc_687d_fd48_2df1_78da505db812["ServerCookieDecoderTest"]
  f1ec761d_e9cd_c959_bb00_4348f73e79e3 -->|defined in| d0a674bc_687d_fd48_2df1_78da505db812
  style f1ec761d_e9cd_c959_bb00_4348f73e79e3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieDecoderTest.java lines 40–58

    @Test
    public void testDecodingMultipleCookies() {
        String c1 = "myCookie=myValue;";
        String c2 = "myCookie2=myValue2;";
        String c3 = "myCookie3=myValue3;";

        Set<Cookie> cookies = ServerCookieDecoder.STRICT.decode(c1 + c2 + c3);
        assertEquals(3, cookies.size());
        Iterator<Cookie> it = cookies.iterator();
        Cookie cookie = it.next();
        assertNotNull(cookie);
        assertEquals("myValue", cookie.value());
        cookie = it.next();
        assertNotNull(cookie);
        assertEquals("myValue2", cookie.value());
        cookie = it.next();
        assertNotNull(cookie);
        assertEquals("myValue3", cookie.value());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free