testEmptySplitContent() — netty Function Reference
Architecture documentation for the testEmptySplitContent() function in HttpContentCompressorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 088c32ee_5b99_1d6b_8bee_8b4d40025262["testEmptySplitContent()"] 32ab04b0_6c83_d4f7_6483_fd304f908331["HttpContentCompressorTest"] 088c32ee_5b99_1d6b_8bee_8b4d40025262 -->|defined in| 32ab04b0_6c83_d4f7_6483_fd304f908331 b5923f89_ec88_7b8c_42e2_99970d204fc4["assertEncodedResponse()"] 088c32ee_5b99_1d6b_8bee_8b4d40025262 -->|calls| b5923f89_ec88_7b8c_42e2_99970d204fc4 bdf032ba_93a9_0f83_122a_c24ea71efa75["release()"] 088c32ee_5b99_1d6b_8bee_8b4d40025262 -->|calls| bdf032ba_93a9_0f83_122a_c24ea71efa75 style 088c32ee_5b99_1d6b_8bee_8b4d40025262 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java lines 525–545
@Test
public void testEmptySplitContent() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new HttpContentCompressor());
ch.writeInbound(newRequest());
ch.writeOutbound(new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK));
assertEncodedResponse(ch);
ch.writeOutbound(LastHttpContent.EMPTY_LAST_CONTENT);
HttpContent chunk = ch.readOutbound();
assertEquals("1f8b080000000000000003000000000000000000", ByteBufUtil.hexDump(chunk.content()));
assertInstanceOf(HttpContent.class, chunk);
chunk.release();
chunk = ch.readOutbound();
assertFalse(chunk.content().isReadable());
assertInstanceOf(LastHttpContent.class, chunk);
chunk.release();
assertNull(ch.readOutbound());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testEmptySplitContent() do?
testEmptySplitContent() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java.
Where is testEmptySplitContent() defined?
testEmptySplitContent() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java at line 525.
What does testEmptySplitContent() call?
testEmptySplitContent() calls 2 function(s): assertEncodedResponse, release.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free