Home / Function/ testGetCharsetInvalidQuotes() — netty Function Reference

testGetCharsetInvalidQuotes() — netty Function Reference

Architecture documentation for the testGetCharsetInvalidQuotes() function in HttpUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  184148e6_ac29_f3ba_2a75_1613b7a72f32["testGetCharsetInvalidQuotes()"]
  04f193b8_77e1_8af0_51b3_8dcd3ac8de0e["HttpUtilTest"]
  184148e6_ac29_f3ba_2a75_1613b7a72f32 -->|defined in| 04f193b8_77e1_8af0_51b3_8dcd3ac8de0e
  bb1ac6ae_1961_06ae_4625_94d8e729c587["testGetCharsetNoLeadingQuotes()"]
  bb1ac6ae_1961_06ae_4625_94d8e729c587 -->|calls| 184148e6_ac29_f3ba_2a75_1613b7a72f32
  73a35a81_2fd0_1915_b48d_fcee1c426770["testGetCharsetNoTrailingQuotes()"]
  73a35a81_2fd0_1915_b48d_fcee1c426770 -->|calls| 184148e6_ac29_f3ba_2a75_1613b7a72f32
  9964f940_537f_6eac_cbc5_a53e584074fc["testGetCharsetOnlyQuotes()"]
  9964f940_537f_6eac_cbc5_a53e584074fc -->|calls| 184148e6_ac29_f3ba_2a75_1613b7a72f32
  style 184148e6_ac29_f3ba_2a75_1613b7a72f32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java lines 178–190

    private static void testGetCharsetInvalidQuotes(String contentType) {
        String UPPER_CASE_NORMAL_CONTENT_TYPE = contentType.toUpperCase();

        HttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
        message.headers().set(HttpHeaderNames.CONTENT_TYPE, contentType);
        assertEquals(CharsetUtil.ISO_8859_1, HttpUtil.getCharset(message, CharsetUtil.ISO_8859_1));
        assertEquals(CharsetUtil.ISO_8859_1, HttpUtil.getCharset(contentType, CharsetUtil.ISO_8859_1));

        message.headers().set(HttpHeaderNames.CONTENT_TYPE, UPPER_CASE_NORMAL_CONTENT_TYPE);
        assertEquals(CharsetUtil.ISO_8859_1, HttpUtil.getCharset(message, CharsetUtil.ISO_8859_1));
        assertEquals(CharsetUtil.ISO_8859_1, HttpUtil.getCharset(UPPER_CASE_NORMAL_CONTENT_TYPE,
                CharsetUtil.ISO_8859_1));
    }

Domain

Subdomains

Frequently Asked Questions

What does testGetCharsetInvalidQuotes() do?
testGetCharsetInvalidQuotes() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java.
Where is testGetCharsetInvalidQuotes() defined?
testGetCharsetInvalidQuotes() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java at line 178.
What calls testGetCharsetInvalidQuotes()?
testGetCharsetInvalidQuotes() is called by 3 function(s): testGetCharsetNoLeadingQuotes, testGetCharsetNoTrailingQuotes, testGetCharsetOnlyQuotes.

Analyze Your Own Codebase

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

Try Supermodel Free