Home / Function/ testRemoveIfExistsDoesNotThrowException() — netty Function Reference

testRemoveIfExistsDoesNotThrowException() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  41051469_aa63_66f5_9615_120713db700f["testRemoveIfExistsDoesNotThrowException()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  41051469_aa63_66f5_9615_120713db700f -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  style 41051469_aa63_66f5_9615_120713db700f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 227–239

    @Test
    public void testRemoveIfExistsDoesNotThrowException() {
        DefaultChannelPipeline pipeline = new DefaultChannelPipeline(new LocalChannel());

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

        assertNull(pipeline.removeIfExists("handlerXXX"));
        assertNull(pipeline.removeIfExists(handler2));
        assertNull(pipeline.removeIfExists(ChannelOutboundHandlerAdapter.class));
        assertNotNull(pipeline.get("handler1"));
    }

Domain

Subdomains

Frequently Asked Questions

What does testRemoveIfExistsDoesNotThrowException() do?
testRemoveIfExistsDoesNotThrowException() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testRemoveIfExistsDoesNotThrowException() defined?
testRemoveIfExistsDoesNotThrowException() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 227.

Analyze Your Own Codebase

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

Try Supermodel Free