Home / Function/ testNotThrowBlockingOperationException() — netty Function Reference

testNotThrowBlockingOperationException() — netty Function Reference

Architecture documentation for the testNotThrowBlockingOperationException() function in DefaultChannelGroupTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  af5db9fd_bce0_587e_5f77_d729adac7f5a["testNotThrowBlockingOperationException()"]
  a24af809_d6b5_35fa_a23d_19137c6008d7["DefaultChannelGroupTest"]
  af5db9fd_bce0_587e_5f77_d729adac7f5a -->|defined in| a24af809_d6b5_35fa_a23d_19137c6008d7
  style af5db9fd_bce0_587e_5f77_d729adac7f5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/group/DefaultChannelGroupTest.java lines 32–57

    @Test
    public void testNotThrowBlockingOperationException() throws Exception {
        EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());

        final ChannelGroup allChannels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);

        ServerBootstrap b = new ServerBootstrap();
        b.group(group);
        b.childHandler(new ChannelInboundHandlerAdapter() {
            @Override
            public void channelActive(ChannelHandlerContext ctx) {
                allChannels.add(ctx.channel());
            }
        });
        b.channel(NioServerSocketChannel.class);

        ChannelFuture f = b.bind(0).syncUninterruptibly();

        if (f.isSuccess()) {
            allChannels.add(f.channel());
            allChannels.close().awaitUninterruptibly();
        }

        group.shutdownGracefully();
        group.terminationFuture().sync();
    }

Domain

Subdomains

Frequently Asked Questions

What does testNotThrowBlockingOperationException() do?
testNotThrowBlockingOperationException() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/group/DefaultChannelGroupTest.java.
Where is testNotThrowBlockingOperationException() defined?
testNotThrowBlockingOperationException() is defined in transport/src/test/java/io/netty/channel/group/DefaultChannelGroupTest.java at line 32.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free