testChannelInitializerException() — netty Function Reference
Architecture documentation for the testChannelInitializerException() function in DefaultChannelPipelineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d589eba9_eb37_bc4a_d082_85de56f2fcd3["testChannelInitializerException()"] 666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"] d589eba9_eb37_bc4a_d082_85de56f2fcd3 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2 8c52b958_e400_144f_b4f2_e60153ac0d1a["exceptionCaught()"] d589eba9_eb37_bc4a_d082_85de56f2fcd3 -->|calls| 8c52b958_e400_144f_b4f2_e60153ac0d1a style d589eba9_eb37_bc4a_d082_85de56f2fcd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1138–1160
@Test
@Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
public void testChannelInitializerException() throws Exception {
final IllegalStateException exception = new IllegalStateException();
final AtomicReference<Throwable> error = new AtomicReference<Throwable>();
final CountDownLatch latch = new CountDownLatch(1);
EmbeddedChannel channel = new EmbeddedChannel(new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel ch) {
throw exception;
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
super.exceptionCaught(ctx, cause);
error.set(cause);
latch.countDown();
}
});
latch.await();
assertFalse(channel.isActive());
assertSame(exception, error.get());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testChannelInitializerException() do?
testChannelInitializerException() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testChannelInitializerException() defined?
testChannelInitializerException() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 1138.
What does testChannelInitializerException() call?
testChannelInitializerException() calls 1 function(s): exceptionCaught.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free