dataReadForUnknownStreamShouldApplyFlowControlAndFail() — netty Function Reference
Architecture documentation for the dataReadForUnknownStreamShouldApplyFlowControlAndFail() function in DefaultHttp2ConnectionDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8daf42a6_8a47_9803_9d5b_686cceab4c50["dataReadForUnknownStreamShouldApplyFlowControlAndFail()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc["DefaultHttp2ConnectionDecoderTest"] 8daf42a6_8a47_9803_9d5b_686cceab4c50 -->|defined in| 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc style 8daf42a6_8a47_9803_9d5b_686cceab4c50 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java lines 290–313
@Test
public void dataReadForUnknownStreamShouldApplyFlowControlAndFail() throws Exception {
when(connection.streamMayHaveExisted(STREAM_ID)).thenReturn(true);
when(connection.stream(STREAM_ID)).thenReturn(null);
final ByteBuf data = dummyData();
final int padding = 10;
int processedBytes = data.readableBytes() + padding;
assertThrows(Http2Exception.StreamException.class, new Executable() {
@Override
public void execute() throws Throwable {
decode().onDataRead(ctx, STREAM_ID, data, padding, true);
}
});
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
Defined In
Source
Frequently Asked Questions
What does dataReadForUnknownStreamShouldApplyFlowControlAndFail() do?
dataReadForUnknownStreamShouldApplyFlowControlAndFail() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java.
Where is dataReadForUnknownStreamShouldApplyFlowControlAndFail() defined?
dataReadForUnknownStreamShouldApplyFlowControlAndFail() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java at line 290.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free