Home / Function/ dataReadForUnknownStreamThatCouldntExistFail() — netty Function Reference

dataReadForUnknownStreamThatCouldntExistFail() — netty Function Reference

Architecture documentation for the dataReadForUnknownStreamThatCouldntExistFail() function in DefaultHttp2ConnectionDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d9e798d4_69b8_63ad_093b_781d787c4bcb["dataReadForUnknownStreamThatCouldntExistFail()"]
  7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc["DefaultHttp2ConnectionDecoderTest"]
  d9e798d4_69b8_63ad_093b_781d787c4bcb -->|defined in| 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc
  style d9e798d4_69b8_63ad_093b_781d787c4bcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java lines 315–343

    @Test
    public void dataReadForUnknownStreamThatCouldntExistFail() throws Exception {
        when(connection.streamMayHaveExisted(STREAM_ID)).thenReturn(false);
        when(connection.stream(STREAM_ID)).thenReturn(null);
        final ByteBuf data = dummyData();
        final int padding = 10;
        int processedBytes = data.readableBytes() + padding;
        assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                try {
                    decode().onDataRead(ctx, STREAM_ID, data, padding, true);
                } catch (Http2Exception ex) {
                    assertThat(ex).isNotInstanceOf(Http2Exception.StreamException.class);
                    throw ex;
                }
            }
        });
        try {
            verify(localFlow)
                    .receiveFlowControlledFrame(eq((Http2Stream) null), eq(data), eq(padding), eq(true));
            verify(localFlow).consumeBytes(eq((Http2Stream) null), eq(processedBytes));
            verify(localFlow).frameWriter(any(Http2FrameWriter.class));
            verifyNoMoreInteractions(localFlow);
            verify(listener, never()).onDataRead(eq(ctx), anyInt(), any(ByteBuf.class), anyInt(), anyBoolean());
        } finally {
            data.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free