Home / Function/ testOptionsCopied() — netty Function Reference

testOptionsCopied() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7e5a14a0_4fdd_86e4_cab5_623871caec19["testOptionsCopied()"]
  7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"]
  7e5a14a0_4fdd_86e4_cab5_623871caec19 -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42
  style 7e5a14a0_4fdd_86e4_cab5_623871caec19 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 116–124

    @Test
    public void testOptionsCopied() {
        final Bootstrap bootstrapA = new Bootstrap();
        bootstrapA.option(ChannelOption.AUTO_READ, true);
        Map.Entry<ChannelOption<?>, Object>[] channelOptions = bootstrapA.newOptionsArray();
        bootstrapA.option(ChannelOption.AUTO_READ, false);
        assertEquals(ChannelOption.AUTO_READ, channelOptions[0].getKey());
        assertEquals(true, channelOptions[0].getValue());
    }

Domain

Subdomains

Frequently Asked Questions

What does testOptionsCopied() do?
testOptionsCopied() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is testOptionsCopied() defined?
testOptionsCopied() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 116.

Analyze Your Own Codebase

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

Try Supermodel Free