Home / Function/ testUnexpectedVoidChannelPromise() — netty Function Reference

testUnexpectedVoidChannelPromise() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1039–1055

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

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

Domain

Subdomains

Frequently Asked Questions

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