Home / Function/ testCancelClose() — netty Function Reference

testCancelClose() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  da728c1a_113d_7883_f46e_e10bc1efd549["testCancelClose()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  da728c1a_113d_7883_f46e_e10bc1efd549 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  0734e696_bf2a_45af_707c_9731756d1f7d["close()"]
  da728c1a_113d_7883_f46e_e10bc1efd549 -->|calls| 0734e696_bf2a_45af_707c_9731756d1f7d
  style da728c1a_113d_7883_f46e_e10bc1efd549 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 888–897

    @Test
    public void testCancelClose() {
        ChannelPipeline pipeline = new LocalChannel().pipeline();
        group.register(pipeline.channel());

        ChannelPromise promise = pipeline.channel().newPromise();
        assertTrue(promise.cancel(false));
        ChannelFuture future = pipeline.close(promise);
        assertTrue(future.isCancelled());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testCancelClose() do?
testCancelClose() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testCancelClose() defined?
testCancelClose() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 888.
What does testCancelClose() call?
testCancelClose() calls 1 function(s): close.

Analyze Your Own Codebase

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

Try Supermodel Free