Home / Function/ testEmptyDataFramesWithEndOfStreamInBetween() — netty Function Reference

testEmptyDataFramesWithEndOfStreamInBetween() — netty Function Reference

Architecture documentation for the testEmptyDataFramesWithEndOfStreamInBetween() function in Http2EmptyDataFrameListenerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5094c4ef_9cc8_08aa_f438_6c77773e8192["testEmptyDataFramesWithEndOfStreamInBetween()"]
  446e4d2f_e8e9_469c_cbb8_17210c5d5706["Http2EmptyDataFrameListenerTest"]
  5094c4ef_9cc8_08aa_f438_6c77773e8192 -->|defined in| 446e4d2f_e8e9_469c_cbb8_17210c5d5706
  style 5094c4ef_9cc8_08aa_f438_6c77773e8192 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2EmptyDataFrameListenerTest.java lines 84–102

    @Test
    public void testEmptyDataFramesWithEndOfStreamInBetween() throws Http2Exception {
        final Http2EmptyDataFrameListener listener = new Http2EmptyDataFrameListener(frameListener, 2);
        listener.onDataRead(ctx, 1, Unpooled.EMPTY_BUFFER, 0, false);
        listener.onDataRead(ctx, 1, Unpooled.EMPTY_BUFFER, 0, true);

        listener.onDataRead(ctx, 1, Unpooled.EMPTY_BUFFER, 0, false);
        listener.onDataRead(ctx, 1, Unpooled.EMPTY_BUFFER, 0, false);

        assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                listener.onDataRead(ctx, 1, Unpooled.EMPTY_BUFFER, 0, false);
            }
        });

        verify(frameListener, times(1)).onDataRead(eq(ctx), eq(1), any(ByteBuf.class), eq(0), eq(true));
        verify(frameListener, times(3)).onDataRead(eq(ctx), eq(1), any(ByteBuf.class), eq(0), eq(false));
    }

Domain

Subdomains

Frequently Asked Questions

What does testEmptyDataFramesWithEndOfStreamInBetween() do?
testEmptyDataFramesWithEndOfStreamInBetween() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2EmptyDataFrameListenerTest.java.
Where is testEmptyDataFramesWithEndOfStreamInBetween() defined?
testEmptyDataFramesWithEndOfStreamInBetween() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2EmptyDataFrameListenerTest.java at line 84.

Analyze Your Own Codebase

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

Try Supermodel Free