testFrameAndContentEncoding() — netty Function Reference
Architecture documentation for the testFrameAndContentEncoding() function in StompSubframeEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 70dcc9ea_b30c_e151_5e0a_93c4aa7ce299["testFrameAndContentEncoding()"] 0e44bb12_a1e9_f7b7_24f3_1c502d6e2848["StompSubframeEncoderTest"] 70dcc9ea_b30c_e151_5e0a_93c4aa7ce299 -->|defined in| 0e44bb12_a1e9_f7b7_24f3_1c502d6e2848 style 70dcc9ea_b30c_e151_5e0a_93c4aa7ce299 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeEncoderTest.java lines 50–73
@Test
public void testFrameAndContentEncoding() {
StompHeadersSubframe frame = new DefaultStompHeadersSubframe(StompCommand.CONNECT);
StompHeaders headers = frame.headers();
headers.set(StompHeaders.HOST, "stomp.github.org");
headers.set(StompHeaders.ACCEPT_VERSION, "1.1,1.2");
channel.writeOutbound(frame);
channel.writeOutbound(LastStompContentSubframe.EMPTY_LAST_CONTENT);
ByteBuf aggregatedBuffer = Unpooled.buffer();
ByteBuf byteBuf = channel.readOutbound();
assertNotNull(byteBuf);
aggregatedBuffer.writeBytes(byteBuf);
byteBuf.release();
byteBuf = channel.readOutbound();
assertNotNull(byteBuf);
aggregatedBuffer.writeBytes(byteBuf);
byteBuf.release();
aggregatedBuffer.resetReaderIndex();
String content = aggregatedBuffer.toString(CharsetUtil.UTF_8);
assertEquals(StompTestConstants.CONNECT_FRAME, content);
aggregatedBuffer.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFrameAndContentEncoding() do?
testFrameAndContentEncoding() is a function in the netty codebase, defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeEncoderTest.java.
Where is testFrameAndContentEncoding() defined?
testFrameAndContentEncoding() is defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeEncoderTest.java at line 50.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free