testDecodeCommand() — netty Function Reference
Architecture documentation for the testDecodeCommand() function in StompCommandDecodeTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD be4ba3fc_8679_585f_74d6_d0be3be07e1b["testDecodeCommand()"] 7eef5b97_771d_0d5a_9790_1b825883d794["StompCommandDecodeTest"] be4ba3fc_8679_585f_74d6_d0be3be07e1b -->|defined in| 7eef5b97_771d_0d5a_9790_1b825883d794 style be4ba3fc_8679_585f_74d6_d0be3be07e1b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompCommandDecodeTest.java lines 50–72
@ParameterizedTest(name = "{index}: testDecodeCommand({0}) = {1}")
@MethodSource("stompCommands")
public void testDecodeCommand(String rawCommand, StompCommand expectedCommand, Boolean valid) {
byte[] frameContent = String.format("%s\n\n\0", rawCommand).getBytes(UTF_8);
ByteBuf incoming = Unpooled.wrappedBuffer(frameContent);
assertTrue(channel.writeInbound(incoming));
StompHeadersSubframe frame = channel.readInbound();
assertNotNull(frame);
assertEquals(expectedCommand, frame.command());
if (valid) {
assertTrue(frame.decoderResult().isSuccess());
StompContentSubframe content = channel.readInbound();
assertSame(LastStompContentSubframe.EMPTY_LAST_CONTENT, content);
content.release();
} else {
assertTrue(frame.decoderResult().isFailure());
assertNull(channel.readInbound());
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecodeCommand() do?
testDecodeCommand() is a function in the netty codebase, defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompCommandDecodeTest.java.
Where is testDecodeCommand() defined?
testDecodeCommand() is defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompCommandDecodeTest.java at line 50.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free