Home / Function/ testRemoveAndForwardOutbound() — netty Function Reference

testRemoveAndForwardOutbound() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 755–775

    @Test
    @Timeout(value = 10000, unit = TimeUnit.MILLISECONDS)
    public void testRemoveAndForwardOutbound() 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();
                handler2.outboundBuffer.add(8);
                assertEquals(8, handler2.outboundBuffer.peek());
                assertTrue(handler1.outboundBuffer.isEmpty());
                p.remove(handler2);
                assertEquals(1, handler1.outboundBuffer.size());
                assertEquals(8, handler1.outboundBuffer.peek());
            }
        }).sync();
    }

Domain

Subdomains

Calls

Frequently Asked Questions

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