testFormEncodeIncorrect() — netty Function Reference
Architecture documentation for the testFormEncodeIncorrect() function in HttpPostRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f7db59a_1fc8_61df_6f96_57bbac7f3738["testFormEncodeIncorrect()"] d3dadcbe_07b1_86dc_3f34_5a56e9d1367e["HttpPostRequestDecoderTest"] 2f7db59a_1fc8_61df_6f96_57bbac7f3738 -->|defined in| d3dadcbe_07b1_86dc_3f34_5a56e9d1367e style 2f7db59a_1fc8_61df_6f96_57bbac7f3738 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 548–563
@Test
public void testFormEncodeIncorrect() throws Exception {
LastHttpContent content = new DefaultLastHttpContent(
Unpooled.copiedBuffer("project=netty&=netty&project=netty", CharsetUtil.US_ASCII));
DefaultHttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/");
HttpPostRequestDecoder decoder = new HttpPostRequestDecoder(req);
try {
decoder.offer(content);
fail();
} catch (HttpPostRequestDecoder.ErrorDataDecoderException e) {
assertTrue(e.getCause() instanceof IllegalArgumentException);
} finally {
content.release();
decoder.destroy();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testFormEncodeIncorrect() do?
testFormEncodeIncorrect() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java.
Where is testFormEncodeIncorrect() defined?
testFormEncodeIncorrect() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java at line 548.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free