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