verifyChannelHandlerCanBeReusedInPipeline() — netty Function Reference
Architecture documentation for the verifyChannelHandlerCanBeReusedInPipeline() function in Http2ConnectionHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 320e4e8c_bac3_8631_2641_7500918a2e3b["verifyChannelHandlerCanBeReusedInPipeline()"] e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"] 320e4e8c_bac3_8631_2641_7500918a2e3b -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5 style 320e4e8c_bac3_8631_2641_7500918a2e3b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 386–405
@Test
public void verifyChannelHandlerCanBeReusedInPipeline() throws Exception {
when(connection.isServer()).thenReturn(true);
handler = newHandler();
// Only read the connection preface...after preface is read internal state of Http2ConnectionHandler
// is expected to change relative to the pipeline.
ByteBuf preface = connectionPrefaceBuf();
handler.channelRead(ctx, preface);
verify(decoder, never()).decodeFrame(any(ChannelHandlerContext.class),
any(ByteBuf.class), ArgumentMatchers.<List<Object>>any());
// Now remove and add the handler...this is setting up the test condition.
handler.handlerRemoved(ctx);
handler.handlerAdded(ctx);
// Now verify we can continue as normal, reading connection preface plus more.
ByteBuf prefacePlusSome = addSettingsHeader(Unpooled.buffer().writeBytes(connectionPrefaceBuf()));
handler.channelRead(ctx, prefacePlusSome);
verify(decoder, atLeastOnce()).decodeFrame(eq(ctx), any(ByteBuf.class), ArgumentMatchers.<List<Object>>any());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does verifyChannelHandlerCanBeReusedInPipeline() do?
verifyChannelHandlerCanBeReusedInPipeline() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is verifyChannelHandlerCanBeReusedInPipeline() defined?
verifyChannelHandlerCanBeReusedInPipeline() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 386.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free