testCompressedEmptyFrame() — netty Function Reference
Architecture documentation for the testCompressedEmptyFrame() function in PerFrameDeflateDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7e4c35ff_8282_1695_b29a_50015c485fc8["testCompressedEmptyFrame()"] 758acdb4_a05e_36ff_8910_74b681e91da1["PerFrameDeflateDecoderTest"] 7e4c35ff_8282_1695_b29a_50015c485fc8 -->|defined in| 758acdb4_a05e_36ff_8910_74b681e91da1 style 7e4c35ff_8282_1695_b29a_50015c485fc8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerFrameDeflateDecoderTest.java lines 102–123
@Test
public void testCompressedEmptyFrame() {
EmbeddedChannel encoderChannel = new EmbeddedChannel(
ZlibCodecFactory.newZlibEncoder(ZlibWrapper.NONE, 9, 15, 8));
EmbeddedChannel decoderChannel = new EmbeddedChannel(new PerFrameDeflateDecoder(false, 0));
assertTrue(encoderChannel.writeOutbound(Unpooled.EMPTY_BUFFER));
ByteBuf compressedPayload = encoderChannel.readOutbound();
BinaryWebSocketFrame compressedFrame =
new BinaryWebSocketFrame(true, RSV1 | RSV3, compressedPayload);
// execute
assertTrue(decoderChannel.writeInbound(compressedFrame));
BinaryWebSocketFrame uncompressedFrame = decoderChannel.readInbound();
// test
assertNotNull(uncompressedFrame);
assertNotNull(uncompressedFrame.content());
assertEquals(RSV3, uncompressedFrame.rsv());
assertEquals(0, uncompressedFrame.content().readableBytes());
uncompressedFrame.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testCompressedEmptyFrame() do?
testCompressedEmptyFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerFrameDeflateDecoderTest.java.
Where is testCompressedEmptyFrame() defined?
testCompressedEmptyFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerFrameDeflateDecoderTest.java at line 102.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free