Home / Function/ testReRegister() — netty Function Reference

testReRegister() — netty Function Reference

Architecture documentation for the testReRegister() function in LocalChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f00a2d99_aed9_4c52_766b_855bbf284603["testReRegister()"]
  d7e5442a_9b99_814d_2bd6_0be57237db65["LocalChannelTest"]
  f00a2d99_aed9_4c52_766b_855bbf284603 -->|defined in| d7e5442a_9b99_814d_2bd6_0be57237db65
  d3c8aa54_ac5d_6944_e789_c2c22ce16089["closeChannel()"]
  f00a2d99_aed9_4c52_766b_855bbf284603 -->|calls| d3c8aa54_ac5d_6944_e789_c2c22ce16089
  style f00a2d99_aed9_4c52_766b_855bbf284603 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/local/LocalChannelTest.java lines 298–330

    @Test
    public void testReRegister() {
        Bootstrap cb = new Bootstrap();
        ServerBootstrap sb = new ServerBootstrap();

        cb.group(group1)
                .channel(LocalChannel.class)
                .handler(new TestHandler());

        sb.group(group2)
                .channel(LocalServerChannel.class)
                .childHandler(new ChannelInitializer<LocalChannel>() {
                    @Override
                    public void initChannel(LocalChannel ch) throws Exception {
                        ch.pipeline().addLast(new TestHandler());
                    }
                });

        Channel sc = null;
        Channel cc = null;
        try {
            // Start server
            sc = sb.bind(TEST_ADDRESS).syncUninterruptibly().channel();

            // Connect to the server
            cc = cb.connect(sc.localAddress()).syncUninterruptibly().channel();

            cc.deregister().syncUninterruptibly();
        } finally {
            closeChannel(cc);
            closeChannel(sc);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testReRegister() do?
testReRegister() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/local/LocalChannelTest.java.
Where is testReRegister() defined?
testReRegister() is defined in transport/src/test/java/io/netty/channel/local/LocalChannelTest.java at line 298.
What does testReRegister() call?
testReRegister() calls 1 function(s): closeChannel.

Analyze Your Own Codebase

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

Try Supermodel Free