Home / Function/ testDecodingGoogleAnalyticsCookie() — netty Function Reference

testDecodingGoogleAnalyticsCookie() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieDecoderTest.java lines 80–120

    @Test
    public void testDecodingGoogleAnalyticsCookie() {
        String source =
            "ARPT=LWUKQPSWRTUN04CKKJI; " +
            "kw-2E343B92-B097-442c-BFA5-BE371E0325A2=unfinished_furniture; " +
            "__utma=48461872.1094088325.1258140131.1258140131.1258140131.1; " +
            "__utmb=48461872.13.10.1258140131; __utmc=48461872; " +
            "__utmz=48461872.1258140131.1.1.utmcsr=overstock.com|utmccn=(referral)|" +
                    "utmcmd=referral|utmcct=/Home-Garden/Furniture/Clearance/clearance/32/dept.html";
        Set<Cookie> cookies = ServerCookieDecoder.STRICT.decode(source);
        Iterator<Cookie> it = cookies.iterator();
        Cookie c;

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

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

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

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

        c = it.next();
        assertEquals("__utmz", c.name());
        assertEquals("48461872.1258140131.1.1.utmcsr=overstock.com|" +
                "utmccn=(referral)|utmcmd=referral|utmcct=/Home-Garden/Furniture/Clearance/clearance/32/dept.html",
                c.value());

        c = it.next();
        assertEquals("kw-2E343B92-B097-442c-BFA5-BE371E0325A2", c.name());
        assertEquals("unfinished_furniture", c.value());

        assertFalse(it.hasNext());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free