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