testEncodeUnknownFrame() — netty Function Reference
Architecture documentation for the testEncodeUnknownFrame() function in SpdyFrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e03770de_140e_0280_3bb7_96b29fdc76d0["testEncodeUnknownFrame()"] 1ad92d84_b4de_7e27_0722_9e65bbb5aa45["SpdyFrameCodecTest"] e03770de_140e_0280_3bb7_96b29fdc76d0 -->|defined in| 1ad92d84_b4de_7e27_0722_9e65bbb5aa45 style e03770de_140e_0280_3bb7_96b29fdc76d0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameCodecTest.java lines 59–76
@Test
public void testEncodeUnknownFrame() {
final SpdyUnknownFrame spdyUnknownFrame = new DefaultSpdyUnknownFrame(
200,
(byte) 13,
Unpooled.wrappedBuffer("Hello, world!".getBytes(CharsetUtil.UTF_8)));
channel.writeOutbound(spdyUnknownFrame);
ByteBuf buf = channel.readOutbound();
Assertions.assertNotNull(buf);
channel.writeInbound(buf);
SpdyUnknownFrame frame = channel.readInbound();
Assertions.assertNotNull(frame);
Assertions.assertEquals(200, frame.frameType());
Assertions.assertEquals((byte) 13, frame.flags());
ByteBuf data = frame.content();
Assertions.assertEquals("Hello, world!", data.toString(CharsetUtil.UTF_8));
data.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testEncodeUnknownFrame() do?
testEncodeUnknownFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameCodecTest.java.
Where is testEncodeUnknownFrame() defined?
testEncodeUnknownFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameCodecTest.java at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free