Home / Function/ testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleLo() — netty Function Reference

testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleLo() — netty Function Reference

Architecture documentation for the testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleLo() function in HttpPostRequestDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  07bf6b79_39af_0066_0005_991daa3c0e31["testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleLo()"]
  d3dadcbe_07b1_86dc_3f34_5a56e9d1367e["HttpPostRequestDecoderTest"]
  07bf6b79_39af_0066_0005_991daa3c0e31 -->|defined in| d3dadcbe_07b1_86dc_3f34_5a56e9d1367e
  style 07bf6b79_39af_0066_0005_991daa3c0e31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 946–961

    @Test
    public void testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleLo() {
        byte[] bodyBytes = "foo=bar&a=b&empty=%2g&city=london".getBytes();
        ByteBuf content = Unpooled.directBuffer(bodyBytes.length);
        content.writeBytes(bodyBytes);

        FullHttpRequest req = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/", content);
        try {
            new HttpPostRequestDecoder(req);
            fail("Was expecting an ErrorDataDecoderException");
        } catch (HttpPostRequestDecoder.ErrorDataDecoderException e) {
            assertEquals("Invalid hex byte at index '0' in string: '%2g'", e.getMessage());
        } finally {
            assertTrue(req.release());
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free