Home / Class/ AbstractSocketTest Class — netty Architecture

AbstractSocketTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  65e41eca_d1bf_6a44_3548_fb3ac811f873["AbstractSocketTest"]
  11e68e61_6d69_f323_d46a_020d78e1f53d["AbstractSocketTest.java"]
  65e41eca_d1bf_6a44_3548_fb3ac811f873 -->|defined in| 11e68e61_6d69_f323_d46a_020d78e1f53d
  56375c81_4d4c_4bca_24a1_a141bd33310a["newFactories()"]
  65e41eca_d1bf_6a44_3548_fb3ac811f873 -->|method| 56375c81_4d4c_4bca_24a1_a141bd33310a
  a471b393_3684_6895_15f7_3454c376c5f5["configure()"]
  65e41eca_d1bf_6a44_3548_fb3ac811f873 -->|method| a471b393_3684_6895_15f7_3454c376c5f5
  5fae0a30_8b81_0151_863a_b6f7aa62d3e4["SocketAddress()"]
  65e41eca_d1bf_6a44_3548_fb3ac811f873 -->|method| 5fae0a30_8b81_0151_863a_b6f7aa62d3e4

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/AbstractSocketTest.java lines 30–47

public abstract class AbstractSocketTest extends AbstractComboTestsuiteTest<ServerBootstrap, Bootstrap> {
    @Override
    protected List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> newFactories() {
        return SocketTestPermutation.INSTANCE.socket();
    }

    @Override
    protected void configure(ServerBootstrap sb, Bootstrap cb, ByteBufAllocator allocator) {
        sb.localAddress(newSocketAddress());
        sb.option(ChannelOption.ALLOCATOR, allocator);
        sb.childOption(ChannelOption.ALLOCATOR, allocator);
        cb.option(ChannelOption.ALLOCATOR, allocator);
    }

    protected SocketAddress newSocketAddress() {
        return new InetSocketAddress(NetUtil.LOCALHOST, 0);
    }
}

Frequently Asked Questions

What is the AbstractSocketTest class?
AbstractSocketTest is a class in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/AbstractSocketTest.java.
Where is AbstractSocketTest defined?
AbstractSocketTest is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/AbstractSocketTest.java at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free