Home / Function/ testRemoveAndForwardInbound() — netty Function Reference

testRemoveAndForwardInbound() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  be423cca_b631_038c_a618_d5ad4dd6d69f["testRemoveAndForwardInbound()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  be423cca_b631_038c_a618_d5ad4dd6d69f -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  1d577730_98cf_e645_a0bd_8e177a3273f3["setUp()"]
  be423cca_b631_038c_a618_d5ad4dd6d69f -->|calls| 1d577730_98cf_e645_a0bd_8e177a3273f3
  2d2a762a_b2a7_b92f_c9a9_231778acb218["run()"]
  be423cca_b631_038c_a618_d5ad4dd6d69f -->|calls| 2d2a762a_b2a7_b92f_c9a9_231778acb218
  style be423cca_b631_038c_a618_d5ad4dd6d69f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 733–753

    @Test
    @Timeout(value = 10000, unit = TimeUnit.MILLISECONDS)
    public void testRemoveAndForwardInbound() throws Exception {
        final BufferedTestHandler handler1 = new BufferedTestHandler();
        final BufferedTestHandler handler2 = new BufferedTestHandler();

        setUp(handler1, handler2);

        self.eventLoop().submit(new Runnable() {
            @Override
            public void run() {
                ChannelPipeline p = self.pipeline();
                handler1.inboundBuffer.add(8);
                assertEquals(8, handler1.inboundBuffer.peek());
                assertTrue(handler2.inboundBuffer.isEmpty());
                p.remove(handler1);
                assertEquals(1, handler2.inboundBuffer.size());
                assertEquals(8, handler2.inboundBuffer.peek());
            }
        }).sync();
    }

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free