Home / Function/ testAsyncResolutionSuccess() — netty Function Reference

testAsyncResolutionSuccess() — netty Function Reference

Architecture documentation for the testAsyncResolutionSuccess() function in BootstrapTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aec196d3_73bf_1dce_045c_dfe3d4f9d9fe["testAsyncResolutionSuccess()"]
  7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"]
  aec196d3_73bf_1dce_045c_dfe3d4f9d9fe -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42
  2073fa87_a419_13b7_1449_424dbe932785["TestAddressResolverGroup()"]
  aec196d3_73bf_1dce_045c_dfe3d4f9d9fe -->|calls| 2073fa87_a419_13b7_1449_424dbe932785
  style aec196d3_73bf_1dce_045c_dfe3d4f9d9fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 346–366

    @Test
    public void testAsyncResolutionSuccess() throws Exception {
        final Bootstrap bootstrapA = new Bootstrap();
        bootstrapA.group(groupA);
        bootstrapA.channel(LocalChannel.class);
        bootstrapA.resolver(new TestAddressResolverGroup(true));
        bootstrapA.handler(dummyHandler);

        final ServerBootstrap bootstrapB = new ServerBootstrap();
        bootstrapB.group(groupB);
        bootstrapB.channel(LocalServerChannel.class);
        bootstrapB.childHandler(dummyHandler);

        assertTrue(bootstrapA.config().toString().contains("resolver:"));
        assertInstanceOf(TestAddressResolverGroup.class, bootstrapA.resolver());

        SocketAddress localAddress = bootstrapB.bind(LocalAddress.ANY).sync().channel().localAddress();

        // Connect to the server using the asynchronous resolver.
        bootstrapA.connect(localAddress).sync();
    }

Domain

Subdomains

Frequently Asked Questions

What does testAsyncResolutionSuccess() do?
testAsyncResolutionSuccess() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is testAsyncResolutionSuccess() defined?
testAsyncResolutionSuccess() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 346.
What does testAsyncResolutionSuccess() call?
testAsyncResolutionSuccess() calls 1 function(s): TestAddressResolverGroup.

Analyze Your Own Codebase

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

Try Supermodel Free