Home / Function/ testReplaceHandlerChecksDuplicateNames() — netty Function Reference

testReplaceHandlerChecksDuplicateNames() — netty Function Reference

Architecture documentation for the testReplaceHandlerChecksDuplicateNames() function in DefaultChannelPipelineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d6a83eab_45ec_1d12_337d_f721d0c8e324["testReplaceHandlerChecksDuplicateNames()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  d6a83eab_45ec_1d12_337d_f721d0c8e324 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  36fce318_f10e_2b70_4def_d189ac0af1ed["execute()"]
  d6a83eab_45ec_1d12_337d_f721d0c8e324 -->|calls| 36fce318_f10e_2b70_4def_d189ac0af1ed
  style d6a83eab_45ec_1d12_337d_f721d0c8e324 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 281–297

    @Test
    public void testReplaceHandlerChecksDuplicateNames() {
        final ChannelPipeline pipeline = new LocalChannel().pipeline();

        ChannelHandler handler1 = newHandler();
        ChannelHandler handler2 = newHandler();
        pipeline.addLast("handler1", handler1);
        pipeline.addLast("handler2", handler2);

        final ChannelHandler newHandler1 = newHandler();
        assertThrows(IllegalArgumentException.class, new Executable() {
            @Override
            public void execute() {
                pipeline.replace("handler1", "handler2", newHandler1);
            }
        });
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testReplaceHandlerChecksDuplicateNames() do?
testReplaceHandlerChecksDuplicateNames() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testReplaceHandlerChecksDuplicateNames() defined?
testReplaceHandlerChecksDuplicateNames() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 281.
What does testReplaceHandlerChecksDuplicateNames() call?
testReplaceHandlerChecksDuplicateNames() calls 1 function(s): execute.

Analyze Your Own Codebase

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

Try Supermodel Free