Home / Function/ testDecodingQuotedCookie() — netty Function Reference

testDecodingQuotedCookie() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java lines 131–154

    @Test
    public void testDecodingQuotedCookie() {
        Collection<String> sources = new ArrayList<String>();
        sources.add("a=\"\",");
        sources.add("b=\"1\",");

        Collection<Cookie> cookies = new ArrayList<Cookie>();
        for (String source : sources) {
            cookies.add(ClientCookieDecoder.STRICT.decode(source));
        }

        Iterator<Cookie> it = cookies.iterator();
        Cookie c;

        c = it.next();
        assertEquals("a", c.name());
        assertEquals("", c.value());

        c = it.next();
        assertEquals("b", c.name());
        assertEquals("1", c.value());

        assertFalse(it.hasNext());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free