testCloseOnError() — netty Function Reference
Architecture documentation for the testCloseOnError() function in NioServerSocketChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 465b1bc3_440d_ba29_1d78_f4baa94614ad["testCloseOnError()"] cb212f64_35d3_d16b_3cdc_db161066f8cf["NioServerSocketChannelTest"] 465b1bc3_440d_ba29_1d78_f4baa94614ad -->|defined in| cb212f64_35d3_d16b_3cdc_db161066f8cf bcedae1f_5496_ff0a_4233_b916365c8902["NioServerSocketChannel()"] 465b1bc3_440d_ba29_1d78_f4baa94614ad -->|calls| bcedae1f_5496_ff0a_4233_b916365c8902 style 465b1bc3_440d_ba29_1d78_f4baa94614ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/socket/nio/NioServerSocketChannelTest.java lines 37–51
@Test
public void testCloseOnError() throws Exception {
ServerSocketChannel jdkChannel = ServerSocketChannel.open();
NioServerSocketChannel serverSocketChannel = new NioServerSocketChannel(jdkChannel);
EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
try {
group.register(serverSocketChannel).syncUninterruptibly();
serverSocketChannel.bind(new InetSocketAddress(0)).syncUninterruptibly();
assertFalse(serverSocketChannel.closeOnReadError(new IOException()));
assertTrue(serverSocketChannel.closeOnReadError(new IllegalArgumentException()));
serverSocketChannel.close().syncUninterruptibly();
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testCloseOnError() do?
testCloseOnError() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/socket/nio/NioServerSocketChannelTest.java.
Where is testCloseOnError() defined?
testCloseOnError() is defined in transport/src/test/java/io/netty/channel/socket/nio/NioServerSocketChannelTest.java at line 37.
What does testCloseOnError() call?
testCloseOnError() calls 1 function(s): NioServerSocketChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free