testHandlerRemovedExceptionFromChildHandlerIsPropagated() — netty Function Reference
Architecture documentation for the testHandlerRemovedExceptionFromChildHandlerIsPropagated() function in DefaultChannelPipelineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 10a06439_70ba_e1d8_811d_b71f0ca1b9fc["testHandlerRemovedExceptionFromChildHandlerIsPropagated()"] 666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"] 10a06439_70ba_e1d8_811d_b71f0ca1b9fc -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2 a2eed25d_b7ba_1436_1910_39c9b1477519["next()"] 10a06439_70ba_e1d8_811d_b71f0ca1b9fc -->|calls| a2eed25d_b7ba_1436_1910_39c9b1477519 0583b801_5c23_7c01_232e_535f987f04c2["CheckExceptionHandler()"] 10a06439_70ba_e1d8_811d_b71f0ca1b9fc -->|calls| 0583b801_5c23_7c01_232e_535f987f04c2 19bd3906_4c8c_ae23_6c05_b7a84d367379["shutdownGracefully()"] 10a06439_70ba_e1d8_811d_b71f0ca1b9fc -->|calls| 19bd3906_4c8c_ae23_6c05_b7a84d367379 style 10a06439_70ba_e1d8_811d_b71f0ca1b9fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1327–1349
@Test
@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
public void testHandlerRemovedExceptionFromChildHandlerIsPropagated() {
final EventExecutorGroup group1 = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
try {
final Promise<Void> promise = group1.next().newPromise();
String handlerName = "foo";
final Exception exception = new RuntimeException();
ChannelPipeline pipeline = new LocalChannel().pipeline();
pipeline.addLast(handlerName, new ChannelHandlerAdapter() {
@Override
public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
throw exception;
}
});
pipeline.addLast(group1, new CheckExceptionHandler(exception, promise));
group.register(pipeline.channel()).syncUninterruptibly();
pipeline.remove(handlerName);
promise.syncUninterruptibly();
} finally {
group1.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testHandlerRemovedExceptionFromChildHandlerIsPropagated() do?
testHandlerRemovedExceptionFromChildHandlerIsPropagated() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testHandlerRemovedExceptionFromChildHandlerIsPropagated() defined?
testHandlerRemovedExceptionFromChildHandlerIsPropagated() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 1327.
What does testHandlerRemovedExceptionFromChildHandlerIsPropagated() call?
testHandlerRemovedExceptionFromChildHandlerIsPropagated() calls 3 function(s): CheckExceptionHandler, next, shutdownGracefully.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free