testReplaceNameWithGenerated() — netty Function Reference
Architecture documentation for the testReplaceNameWithGenerated() function in DefaultChannelPipelineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD eafa2e0b_8697_334f_4614_1b585b838a64["testReplaceNameWithGenerated()"] 666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"] eafa2e0b_8697_334f_4614_1b585b838a64 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2 style eafa2e0b_8697_334f_4614_1b585b838a64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 299–311
@Test
public void testReplaceNameWithGenerated() {
ChannelPipeline pipeline = new LocalChannel().pipeline();
ChannelHandler handler1 = newHandler();
pipeline.addLast("handler1", handler1);
assertSame(pipeline.get("handler1"), handler1);
ChannelHandler newHandler1 = newHandler();
pipeline.replace("handler1", null, newHandler1);
assertSame(pipeline.get("DefaultChannelPipelineTest$TestHandler#0"), newHandler1);
assertNull(pipeline.get("handler1"));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testReplaceNameWithGenerated() do?
testReplaceNameWithGenerated() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testReplaceNameWithGenerated() defined?
testReplaceNameWithGenerated() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 299.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free