Home / Function/ testHasNoDisconnect() — netty Function Reference

testHasNoDisconnect() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 280–289

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

Domain

Subdomains

Frequently Asked Questions

What does testHasNoDisconnect() do?
testHasNoDisconnect() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testHasNoDisconnect() defined?
testHasNoDisconnect() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 280.
What does testHasNoDisconnect() call?
testHasNoDisconnect() 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