Home / Function/ ensureInitialRegistrationFiresActive() — netty Function Reference

ensureInitialRegistrationFiresActive() — netty Function Reference

Architecture documentation for the ensureInitialRegistrationFiresActive() function in AbstractChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9e832794_2034_22cd_5ae1_685bbe0f831b["ensureInitialRegistrationFiresActive()"]
  63f919c7_8527_59bf_45a5_f49840c141ac["AbstractChannelTest"]
  9e832794_2034_22cd_5ae1_685bbe0f831b -->|defined in| 63f919c7_8527_59bf_45a5_f49840c141ac
  d4f5c0aa_d142_d540_e56d_49a5ff92416f["TestChannel()"]
  9e832794_2034_22cd_5ae1_685bbe0f831b -->|calls| d4f5c0aa_d142_d540_e56d_49a5ff92416f
  9225cd8f_6728_b060_f06a_6f6e2e5381c9["registerChannel()"]
  9e832794_2034_22cd_5ae1_685bbe0f831b -->|calls| 9225cd8f_6728_b060_f06a_6f6e2e5381c9
  style 9e832794_2034_22cd_5ae1_685bbe0f831b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/AbstractChannelTest.java lines 38–53

    @Test
    public void ensureInitialRegistrationFiresActive() throws Throwable {
        EventLoop eventLoop = mock(EventLoop.class);
        // This allows us to have a single-threaded test
        when(eventLoop.inEventLoop()).thenReturn(true);

        TestChannel channel = new TestChannel();
        ChannelInboundHandler handler = mock(ChannelInboundHandler.class);
        channel.pipeline().addLast(handler);

        registerChannel(eventLoop, channel);

        verify(handler).handlerAdded(any(ChannelHandlerContext.class));
        verify(handler).channelRegistered(any(ChannelHandlerContext.class));
        verify(handler).channelActive(any(ChannelHandlerContext.class));
    }

Domain

Subdomains

Frequently Asked Questions

What does ensureInitialRegistrationFiresActive() do?
ensureInitialRegistrationFiresActive() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/AbstractChannelTest.java.
Where is ensureInitialRegistrationFiresActive() defined?
ensureInitialRegistrationFiresActive() is defined in transport/src/test/java/io/netty/channel/AbstractChannelTest.java at line 38.
What does ensureInitialRegistrationFiresActive() call?
ensureInitialRegistrationFiresActive() calls 2 function(s): TestChannel, registerChannel.

Analyze Your Own Codebase

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

Try Supermodel Free