Home / Function/ testUnexpectedVoidChannelPromiseCloseFuture() — netty Function Reference

testUnexpectedVoidChannelPromiseCloseFuture() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1057–1073

    @Test
    public void testUnexpectedVoidChannelPromiseCloseFuture() throws Exception {
        final ChannelPipeline pipeline = new LocalChannel().pipeline();
        group.register(pipeline.channel()).sync();

        try {
            final ChannelPromise promise = (ChannelPromise) pipeline.channel().closeFuture();
            assertThrows(IllegalArgumentException.class, new Executable() {
                @Override
                public void execute() {
                    pipeline.close(promise);
                }
            });
        } finally {
            pipeline.close();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free