Home / Function/ testDecodingLongDates() — netty Function Reference

testDecodingLongDates() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java lines 170–182

    @Test
    public void testDecodingLongDates() {
        Calendar cookieDate = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
        cookieDate.set(9999, Calendar.DECEMBER, 31, 23, 59, 59);
        long expectedMaxAge = (cookieDate.getTimeInMillis() - System
                .currentTimeMillis()) / 1000;

        String source = "Format=EU; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/";

        Cookie cookie = ClientCookieDecoder.STRICT.decode(source);

        assertTrue(Math.abs(expectedMaxAge - cookie.maxAge()) < 2);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free