testChannelInactiveFired() — netty Function Reference
Architecture documentation for the testChannelInactiveFired() function in EmbeddedChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 144103ab_6dea_f344_68ea_2630f54639bc["testChannelInactiveFired()"] 300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"] 144103ab_6dea_f344_68ea_2630f54639bc -->|defined in| 300cabef_b042_697f_5623_37ce249f504d 4fc8a753_5665_2ca5_69db_dc1006272b05["close()"] 144103ab_6dea_f344_68ea_2630f54639bc -->|calls| 4fc8a753_5665_2ca5_69db_dc1006272b05 style 144103ab_6dea_f344_68ea_2630f54639bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 585–603
@Test
@Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
public void testChannelInactiveFired() throws InterruptedException {
final AtomicBoolean inactive = new AtomicBoolean();
EmbeddedChannel channel = new EmbeddedChannel(new ChannelInboundHandlerAdapter() {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
ctx.close();
}
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
inactive.set(true);
}
});
channel.pipeline().fireExceptionCaught(new IllegalStateException());
assertTrue(inactive.get());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testChannelInactiveFired() do?
testChannelInactiveFired() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testChannelInactiveFired() defined?
testChannelInactiveFired() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 585.
What does testChannelInactiveFired() call?
testChannelInactiveFired() calls 1 function(s): close.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free