testFullContent() — netty Function Reference
Architecture documentation for the testFullContent() function in HttpContentEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 30a04db3_d457_460a_811a_a1a1d6c6975a["testFullContent()"] 992a26d3_2083_aeb8_4785_63c545814355["HttpContentEncoderTest"] 30a04db3_d457_460a_811a_a1a1d6c6975a -->|defined in| 992a26d3_2083_aeb8_4785_63c545814355 0a866c5b_d089_2acd_5353_fc5ee08af6b5["assertEncodedResponse()"] 30a04db3_d457_460a_811a_a1a1d6c6975a -->|calls| 0a866c5b_d089_2acd_5353_fc5ee08af6b5 style 30a04db3_d457_460a_811a_a1a1d6c6975a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java lines 198–218
@Test
public void testFullContent() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new TestEncoder());
ch.writeInbound(new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/"));
FullHttpResponse res = new DefaultFullHttpResponse(
HttpVersion.HTTP_1_1, HttpResponseStatus.OK, Unpooled.wrappedBuffer(new byte[42]));
ch.writeOutbound(res);
assertEncodedResponse(ch);
HttpContent c = ch.readOutbound();
assertEquals(2, c.content().readableBytes());
assertEquals("42", c.content().toString(CharsetUtil.US_ASCII));
c.release();
LastHttpContent last = ch.readOutbound();
assertEquals(0, last.content().readableBytes());
last.release();
assertNull(ch.readOutbound());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testFullContent() do?
testFullContent() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java.
Where is testFullContent() defined?
testFullContent() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java at line 198.
What does testFullContent() call?
testFullContent() calls 1 function(s): assertEncodedResponse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free