Home / Function/ testHasDisconnect() — netty Function Reference

testHasDisconnect() — netty Function Reference

Architecture documentation for the testHasDisconnect() function in EmbeddedChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5cb499c0_1a09_75bc_604b_91efdd20d308["testHasDisconnect()"]
  300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"]
  5cb499c0_1a09_75bc_604b_91efdd20d308 -->|defined in| 300cabef_b042_697f_5623_37ce249f504d
  14682a54_a3c2_37f7_b68d_c1ff77b7e22b["disconnect()"]
  5cb499c0_1a09_75bc_604b_91efdd20d308 -->|calls| 14682a54_a3c2_37f7_b68d_c1ff77b7e22b
  4fc8a753_5665_2ca5_69db_dc1006272b05["close()"]
  5cb499c0_1a09_75bc_604b_91efdd20d308 -->|calls| 4fc8a753_5665_2ca5_69db_dc1006272b05
  style 5cb499c0_1a09_75bc_604b_91efdd20d308 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 269–278

    @Test
    public void testHasDisconnect() {
        EventOutboundHandler handler = new EventOutboundHandler();
        EmbeddedChannel channel = new EmbeddedChannel(true, handler);
        assertTrue(channel.disconnect().isSuccess());
        assertTrue(channel.close().isSuccess());
        assertEquals(EventOutboundHandler.DISCONNECT, handler.pollEvent());
        assertEquals(EventOutboundHandler.CLOSE, handler.pollEvent());
        assertNull(handler.pollEvent());
    }

Domain

Subdomains

Frequently Asked Questions

What does testHasDisconnect() do?
testHasDisconnect() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testHasDisconnect() defined?
testHasDisconnect() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 269.
What does testHasDisconnect() call?
testHasDisconnect() calls 2 function(s): close, disconnect.

Analyze Your Own Codebase

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

Try Supermodel Free