testDecodeDataAsClient() — netty Function Reference
Architecture documentation for the testDecodeDataAsClient() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 34789d93_e97b_bbbe_0b04_d05a25a2568d["testDecodeDataAsClient()"] f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"] 34789d93_e97b_bbbe_0b04_d05a25a2568d -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871 style 34789d93_e97b_bbbe_0b04_d05a25a2568d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 874–890
@Test
public void testDecodeDataAsClient() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(false));
ByteBuf hello = Unpooled.copiedBuffer("hello world", CharsetUtil.UTF_8);
assertTrue(ch.writeInbound(new DefaultHttp2DataFrame(hello)));
HttpContent content = ch.readInbound();
try {
assertEquals("hello world", content.content().toString(CharsetUtil.UTF_8));
assertThat(content).isNotInstanceOf(LastHttpContent.class);
} finally {
content.release();
}
assertNull(ch.readInbound());
assertFalse(ch.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testDecodeDataAsClient() do?
testDecodeDataAsClient() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testDecodeDataAsClient() defined?
testDecodeDataAsClient() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 874.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free