testFlushViaDisconnect() — netty Function Reference
Architecture documentation for the testFlushViaDisconnect() function in FlushConsolidationHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c49dd2bb_cf5b_d504_5daf_9c35dbd80cf4["testFlushViaDisconnect()"] 4ef52a0d_d145_a738_5ebe_4e1ee02cb2ca["FlushConsolidationHandlerTest"] c49dd2bb_cf5b_d504_5daf_9c35dbd80cf4 -->|defined in| 4ef52a0d_d145_a738_5ebe_4e1ee02cb2ca style c49dd2bb_cf5b_d504_5daf_9c35dbd80cf4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java lines 116–129
@Test
public void testFlushViaDisconnect() {
final AtomicInteger flushCount = new AtomicInteger();
EmbeddedChannel channel = newChannel(flushCount, false);
// Simulate read loop;
channel.pipeline().fireChannelRead(1L);
assertEquals(0, flushCount.get());
assertNull(channel.readOutbound());
channel.disconnect();
assertEquals(1, flushCount.get());
assertEquals(1L, (Long) channel.readOutbound());
assertNull(channel.readOutbound());
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFlushViaDisconnect() do?
testFlushViaDisconnect() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java.
Where is testFlushViaDisconnect() defined?
testFlushViaDisconnect() is defined in handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java at line 116.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free