Home / Function/ testFlushViaRemoval() — netty Function Reference

testFlushViaRemoval() — netty Function Reference

Architecture documentation for the testFlushViaRemoval() function in FlushConsolidationHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  34682832_be99_da23_3897_b75d4a04ad3f["testFlushViaRemoval()"]
  4ef52a0d_d145_a738_5ebe_4e1ee02cb2ca["FlushConsolidationHandlerTest"]
  34682832_be99_da23_3897_b75d4a04ad3f -->|defined in| 4ef52a0d_d145_a738_5ebe_4e1ee02cb2ca
  style 34682832_be99_da23_3897_b75d4a04ad3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java lines 151–164

    @Test
    public void testFlushViaRemoval() {
        final AtomicInteger flushCount = new AtomicInteger();
        EmbeddedChannel channel = newChannel(flushCount, false);
        // Simulate read loop;
        channel.pipeline().fireChannelRead(1L);
        assertEquals(0, flushCount.get());
        assertNull(channel.readOutbound());
        channel.pipeline().remove(FlushConsolidationHandler.class);
        assertEquals(1, flushCount.get());
        assertEquals(1L, (Long) channel.readOutbound());
        assertNull(channel.readOutbound());
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testFlushViaRemoval() do?
testFlushViaRemoval() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java.
Where is testFlushViaRemoval() defined?
testFlushViaRemoval() is defined in handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java at line 151.

Analyze Your Own Codebase

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

Try Supermodel Free