Home / Function/ testGetContentLengthIntDefaultValueThrowsNumberFormatException() — netty Function Reference

testGetContentLengthIntDefaultValueThrowsNumberFormatException() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java lines 273–283

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free