Home / Function/ testDecodeFullHttpRequestWithUrlEncodedBodyWithBrokenHexByte1() — netty Function Reference

testDecodeFullHttpRequestWithUrlEncodedBodyWithBrokenHexByte1() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 912–927

    @Test
    public void testDecodeFullHttpRequestWithUrlEncodedBodyWithBrokenHexByte1() {
        byte[] bodyBytes = "foo=bar&a=b&empty=%2&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: '%2'", e.getMessage());
        } finally {
            assertTrue(req.release());
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free