testNormalFrame() — netty Function Reference
Architecture documentation for the testNormalFrame() function in PerMessageDeflateDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cf9add7d_1450_c7d4_3d7e_1829bf321fa3["testNormalFrame()"] 5fb9cabd_f848_d24f_11ed_16ea8470984d["PerMessageDeflateDecoderTest"] cf9add7d_1450_c7d4_3d7e_1829bf321fa3 -->|defined in| 5fb9cabd_f848_d24f_11ed_16ea8470984d style cf9add7d_1450_c7d4_3d7e_1829bf321fa3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java lines 83–108
@Test
public void testNormalFrame() {
EmbeddedChannel decoderChannel = new EmbeddedChannel(new PerMessageDeflateDecoder(false, 0));
// initialize
byte[] payload = new byte[300];
random.nextBytes(payload);
BinaryWebSocketFrame frame = new BinaryWebSocketFrame(true,
WebSocketExtension.RSV3, Unpooled.wrappedBuffer(payload));
// execute
assertTrue(decoderChannel.writeInbound(frame));
BinaryWebSocketFrame newFrame = decoderChannel.readInbound();
// test
assertNotNull(newFrame);
assertNotNull(newFrame.content());
assertEquals(WebSocketExtension.RSV3, newFrame.rsv());
assertEquals(300, newFrame.content().readableBytes());
byte[] finalPayload = new byte[300];
newFrame.content().readBytes(finalPayload);
assertArrayEquals(finalPayload, payload);
newFrame.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testNormalFrame() do?
testNormalFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java.
Where is testNormalFrame() defined?
testNormalFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java at line 83.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free