testTooManyResponses() — netty Function Reference
Architecture documentation for the testTooManyResponses() function in HttpContentCompressorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7b05c236_5164_1740_b7b2_dc775e813b2a["testTooManyResponses()"] 32ab04b0_6c83_d4f7_6483_fd304f908331["HttpContentCompressorTest"] 7b05c236_5164_1740_b7b2_dc775e813b2a -->|defined in| 32ab04b0_6c83_d4f7_6483_fd304f908331 bdf032ba_93a9_0f83_122a_c24ea71efa75["release()"] 7b05c236_5164_1740_b7b2_dc775e813b2a -->|calls| bdf032ba_93a9_0f83_122a_c24ea71efa75 style 7b05c236_5164_1740_b7b2_dc775e813b2a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java lines 733–764
@Test
public void testTooManyResponses() throws Exception {
FullHttpRequest request = newRequest();
EmbeddedChannel ch = new EmbeddedChannel(new HttpContentCompressor());
ch.writeInbound(request);
ch.writeOutbound(new DefaultFullHttpResponse(
HttpVersion.HTTP_1_1, HttpResponseStatus.OK, Unpooled.EMPTY_BUFFER));
try {
ch.writeOutbound(new DefaultFullHttpResponse(
HttpVersion.HTTP_1_1, HttpResponseStatus.OK, Unpooled.EMPTY_BUFFER));
fail();
} catch (EncoderException e) {
assertTrue(e.getCause() instanceof IllegalStateException);
}
assertTrue(ch.finish());
for (;;) {
Object message = ch.readOutbound();
if (message == null) {
break;
}
ReferenceCountUtil.release(message);
}
for (;;) {
Object message = ch.readInbound();
if (message == null) {
break;
}
ReferenceCountUtil.release(message);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testTooManyResponses() do?
testTooManyResponses() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java.
Where is testTooManyResponses() defined?
testTooManyResponses() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java at line 733.
What does testTooManyResponses() call?
testTooManyResponses() calls 1 function(s): release.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free