testUnescapeHeaders() — netty Function Reference
Architecture documentation for the testUnescapeHeaders() function in StompSubframeDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cc011fd8_79e8_e0f3_73b7_14dbee87bfa4["testUnescapeHeaders()"] f11558ca_762b_56f8_ed96_df83259d279f["StompSubframeDecoderTest"] cc011fd8_79e8_e0f3_73b7_14dbee87bfa4 -->|defined in| f11558ca_762b_56f8_ed96_df83259d279f style cc011fd8_79e8_e0f3_73b7_14dbee87bfa4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java lines 248–270
@Test
void testUnescapeHeaders() {
channel = new EmbeddedChannel(new StompSubframeDecoder(true));
ByteBuf incoming = Unpooled.wrappedBuffer(StompTestConstants.ESCAPED_MESSAGE_FRAME.getBytes(UTF_8));
assertTrue(channel.writeInbound(incoming));
StompHeadersSubframe headersSubFrame = channel.readInbound();
assertNotNull(headersSubFrame);
assertFalse(headersSubFrame.decoderResult().isFailure());
assertEquals(6, headersSubFrame.headers().size());
assertEquals("/queue/a:", headersSubFrame.headers().get(StompHeaders.DESTINATION));
assertEquals("header\\\r\n:Value", headersSubFrame.headers().get("header\\\r\n:Name"));
assertEquals("header_\\_\r_\n_:_Value", headersSubFrame.headers().get("header_\\_\r_\n_:_Name"));
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 testUnescapeHeaders() do?
testUnescapeHeaders() is a function in the netty codebase, defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java.
Where is testUnescapeHeaders() defined?
testUnescapeHeaders() is defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java at line 248.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free