Home / Class/ DefaultChannelGroupTest Class — netty Architecture

DefaultChannelGroupTest Class — netty Architecture

Architecture documentation for the DefaultChannelGroupTest class in DefaultChannelGroupTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a24af809_d6b5_35fa_a23d_19137c6008d7["DefaultChannelGroupTest"]
  96e94273_8644_e070_d13b_8ba49dbba14e["DefaultChannelGroupTest.java"]
  a24af809_d6b5_35fa_a23d_19137c6008d7 -->|defined in| 96e94273_8644_e070_d13b_8ba49dbba14e
  af5db9fd_bce0_587e_5f77_d729adac7f5a["testNotThrowBlockingOperationException()"]
  a24af809_d6b5_35fa_a23d_19137c6008d7 -->|method| af5db9fd_bce0_587e_5f77_d729adac7f5a

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/group/DefaultChannelGroupTest.java lines 29–58

public class DefaultChannelGroupTest {

    // Test for #1183
    @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();
    }
}

Frequently Asked Questions

What is the DefaultChannelGroupTest class?
DefaultChannelGroupTest is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/group/DefaultChannelGroupTest.java.
Where is DefaultChannelGroupTest defined?
DefaultChannelGroupTest is defined in transport/src/test/java/io/netty/channel/group/DefaultChannelGroupTest.java at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free