Home / Function/ testCancelWrite() — netty Function Reference

testCancelWrite() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  61a24c53_e6f1_6745_3614_87272434c1b2["testCancelWrite()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  61a24c53_e6f1_6745_3614_87272434c1b2 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  1bb1c1cc_77dd_d360_5aff_fec13914d331["write()"]
  61a24c53_e6f1_6745_3614_87272434c1b2 -->|calls| 1bb1c1cc_77dd_d360_5aff_fec13914d331
  style 61a24c53_e6f1_6745_3614_87272434c1b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1086–1098

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

        ChannelPromise promise = pipeline.channel().newPromise();
        assertTrue(promise.cancel(false));
        ByteBuf buffer = Unpooled.buffer();
        assertEquals(1, buffer.refCnt());
        ChannelFuture future = pipeline.write(buffer, promise);
        assertTrue(future.isCancelled());
        assertEquals(0, buffer.refCnt());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free