Home / Function/ testGetContentLengthThrowsNumberFormatException() — netty Function Reference

testGetContentLengthThrowsNumberFormatException() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bb23efc7_14d2_4683_546b_2b16f3515038["testGetContentLengthThrowsNumberFormatException()"]
  04f193b8_77e1_8af0_51b3_8dcd3ac8de0e["HttpUtilTest"]
  bb23efc7_14d2_4683_546b_2b16f3515038 -->|defined in| 04f193b8_77e1_8af0_51b3_8dcd3ac8de0e
  style bb23efc7_14d2_4683_546b_2b16f3515038 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java lines 261–271

    @Test
    public void testGetContentLengthThrowsNumberFormatException() {
        final HttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
        message.headers().set(HttpHeaderNames.CONTENT_LENGTH, "bar");
        try {
            HttpUtil.getContentLength(message);
            fail();
        } catch (final NumberFormatException e) {
            // a number format exception is expected here
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free