testDecodeSingleAttributeWithNoValueEmptyLast() — netty Function Reference
Architecture documentation for the testDecodeSingleAttributeWithNoValueEmptyLast() function in HttpPostStandardRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ce952403_f13a_514a_e165_98b5be91570a["testDecodeSingleAttributeWithNoValueEmptyLast()"] 700bdd36_e58a_9cef_6fb4_774362c57167["HttpPostStandardRequestDecoderTest"] ce952403_f13a_514a_e165_98b5be91570a -->|defined in| 700bdd36_e58a_9cef_6fb4_774362c57167 60cb6c7f_94bd_db1f_cddc_21c53027d383["assertMemoryAttribute()"] ce952403_f13a_514a_e165_98b5be91570a -->|calls| 60cb6c7f_94bd_db1f_cddc_21c53027d383 style ce952403_f13a_514a_e165_98b5be91570a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoderTest.java lines 69–86
@Test
void testDecodeSingleAttributeWithNoValueEmptyLast() {
String requestBody = "key1";
HttpRequest request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/upload",
headersFactory().newHeaders().add("Content-Type", "application/x-www-form-urlencoded"));
HttpPostStandardRequestDecoder decoder = new HttpPostStandardRequestDecoder(httpDiskDataFactory(), request);
ByteBuf buf = Unpooled.wrappedBuffer(requestBody.getBytes(CharsetUtil.UTF_8));
DefaultHttpContent httpContent = new DefaultHttpContent(buf);
decoder.offer(httpContent);
decoder.offer(LastHttpContent.EMPTY_LAST_CONTENT);
assertEquals(1, decoder.getBodyHttpDatas().size());
assertMemoryAttribute(decoder.getBodyHttpData("key1"), "");
decoder.destroy();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testDecodeSingleAttributeWithNoValueEmptyLast() do?
testDecodeSingleAttributeWithNoValueEmptyLast() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoderTest.java.
Where is testDecodeSingleAttributeWithNoValueEmptyLast() defined?
testDecodeSingleAttributeWithNoValueEmptyLast() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoderTest.java at line 69.
What does testDecodeSingleAttributeWithNoValueEmptyLast() call?
testDecodeSingleAttributeWithNoValueEmptyLast() calls 1 function(s): assertMemoryAttribute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free