Home / Function/ testAddHandlerBeforeRegisteredThenRemove() — netty Function Reference

testAddHandlerBeforeRegisteredThenRemove() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f39811ce_7177_9ba3_c9fe_79a5805d12bd["testAddHandlerBeforeRegisteredThenRemove()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  f39811ce_7177_9ba3_c9fe_79a5805d12bd -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  a2eed25d_b7ba_1436_1910_39c9b1477519["next()"]
  f39811ce_7177_9ba3_c9fe_79a5805d12bd -->|calls| a2eed25d_b7ba_1436_1910_39c9b1477519
  ac30b8e8_9379_bd28_0530_7a31e274fbef["CheckEventExecutorHandler()"]
  f39811ce_7177_9ba3_c9fe_79a5805d12bd -->|calls| ac30b8e8_9379_bd28_0530_7a31e274fbef
  style f39811ce_7177_9ba3_c9fe_79a5805d12bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1193–1206

    @Test
    @Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
    public void testAddHandlerBeforeRegisteredThenRemove() {
        final EventLoop loop = group.next();

        CheckEventExecutorHandler handler = new CheckEventExecutorHandler(loop);
        ChannelPipeline pipeline = new LocalChannel().pipeline();
        pipeline.addFirst(handler);
        assertFalse(handler.addedPromise.isDone());
        group.register(pipeline.channel());
        handler.addedPromise.syncUninterruptibly();
        pipeline.remove(handler);
        handler.removedPromise.syncUninterruptibly();
    }

Domain

Subdomains

Frequently Asked Questions

What does testAddHandlerBeforeRegisteredThenRemove() do?
testAddHandlerBeforeRegisteredThenRemove() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testAddHandlerBeforeRegisteredThenRemove() defined?
testAddHandlerBeforeRegisteredThenRemove() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 1193.
What does testAddHandlerBeforeRegisteredThenRemove() call?
testAddHandlerBeforeRegisteredThenRemove() calls 2 function(s): CheckEventExecutorHandler, next.

Analyze Your Own Codebase

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

Try Supermodel Free