testNotUnescapeHeadersForConnectCommand() — netty Function Reference
Architecture documentation for the testNotUnescapeHeadersForConnectCommand() function in StompSubframeDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 340abaf0_dd9f_92cb_35fc_55f06ab9a054["testNotUnescapeHeadersForConnectCommand()"] f11558ca_762b_56f8_ed96_df83259d279f["StompSubframeDecoderTest"] 340abaf0_dd9f_92cb_35fc_55f06ab9a054 -->|defined in| f11558ca_762b_56f8_ed96_df83259d279f style 340abaf0_dd9f_92cb_35fc_55f06ab9a054 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java lines 272–294
@Test
void testNotUnescapeHeadersForConnectCommand() {
String expectedStompFrame = "CONNECT\n"
+ "headerName-\\\\:headerValue-\\\\\n"
+ "\n" + '\0';
channel = new EmbeddedChannel(new StompSubframeDecoder(true));
ByteBuf incoming = Unpooled.wrappedBuffer(expectedStompFrame.getBytes(UTF_8));
assertTrue(channel.writeInbound(incoming));
StompHeadersSubframe headersSubFrame = channel.readInbound();
assertNotNull(headersSubFrame);
assertFalse(headersSubFrame.decoderResult().isFailure());
assertEquals(1, headersSubFrame.headers().size());
assertEquals("headerValue-\\\\", headersSubFrame.headers().get("headerName-\\\\"));
StompContentSubframe content = channel.readInbound();
assertSame(LastStompContentSubframe.EMPTY_LAST_CONTENT, content);
content.release();
Object obj = channel.readInbound();
assertNull(obj);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testNotUnescapeHeadersForConnectCommand() do?
testNotUnescapeHeadersForConnectCommand() is a function in the netty codebase, defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java.
Where is testNotUnescapeHeadersForConnectCommand() defined?
testNotUnescapeHeadersForConnectCommand() is defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java at line 272.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free