Home / Function/ testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleHi() — netty Function Reference

testDecodeFullHttpRequestWithUrlEncodedBodyWithInvalidHexNibbleHi() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 929–944

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free