Home / Function/ testFinishAndReleaseAll() — netty Function Reference

testFinishAndReleaseAll() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0e2ff1c0_4ae9_f2e2_8135_68bacefabbb6["testFinishAndReleaseAll()"]
  300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"]
  0e2ff1c0_4ae9_f2e2_8135_68bacefabbb6 -->|defined in| 300cabef_b042_697f_5623_37ce249f504d
  17f7b672_524d_b9ed_a14b_29a7376a7ef2["release()"]
  0e2ff1c0_4ae9_f2e2_8135_68bacefabbb6 -->|calls| 17f7b672_524d_b9ed_a14b_29a7376a7ef2
  style 0e2ff1c0_4ae9_f2e2_8135_68bacefabbb6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 302–323

    @Test
    public void testFinishAndReleaseAll() {
        ByteBuf in = Unpooled.buffer();
        ByteBuf out = Unpooled.buffer();
        try {
            EmbeddedChannel channel = new EmbeddedChannel();
            assertTrue(channel.writeInbound(in));
            assertEquals(1, in.refCnt());

            assertTrue(channel.writeOutbound(out));
            assertEquals(1, out.refCnt());

            assertTrue(channel.finishAndReleaseAll());
            assertEquals(0, in.refCnt());
            assertEquals(0, out.refCnt());

            assertNull(channel.readInbound());
            assertNull(channel.readOutbound());
        } finally {
            release(in, out);
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testFinishAndReleaseAll() do?
testFinishAndReleaseAll() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testFinishAndReleaseAll() defined?
testFinishAndReleaseAll() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 302.
What does testFinishAndReleaseAll() call?
testFinishAndReleaseAll() calls 1 function(s): release.

Analyze Your Own Codebase

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

Try Supermodel Free