Home / Function/ testDecodingAllMultipleCookies() — netty Function Reference

testDecodingAllMultipleCookies() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieDecoderTest.java lines 60–78

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

        List<Cookie> cookies = ServerCookieDecoder.STRICT.decodeAll(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 testDecodingAllMultipleCookies() do?
testDecodingAllMultipleCookies() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieDecoderTest.java.
Where is testDecodingAllMultipleCookies() defined?
testDecodingAllMultipleCookies() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieDecoderTest.java at line 60.

Analyze Your Own Codebase

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

Try Supermodel Free