Home / Function/ testValidateHeadersDecodingDisabled() — netty Function Reference

testValidateHeadersDecodingDisabled() — netty Function Reference

Architecture documentation for the testValidateHeadersDecodingDisabled() function in StompSubframeDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1a9b2e30_bed9_0aac_8948_40cb3438d6b1["testValidateHeadersDecodingDisabled()"]
  f11558ca_762b_56f8_ed96_df83259d279f["StompSubframeDecoderTest"]
  1a9b2e30_bed9_0aac_8948_40cb3438d6b1 -->|defined in| f11558ca_762b_56f8_ed96_df83259d279f
  style 1a9b2e30_bed9_0aac_8948_40cb3438d6b1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java lines 165–181

    @Test
    public void testValidateHeadersDecodingDisabled() {
        ByteBuf invalidIncoming = Unpooled.copiedBuffer(FRAME_WITH_INVALID_HEADER.getBytes(UTF_8));
        assertTrue(channel.writeInbound(invalidIncoming));

        StompHeadersSubframe frame = channel.readInbound();
        assertNotNull(frame);
        assertEquals(StompCommand.SEND, frame.command());
        assertTrue(frame.headers().contains("destination"));
        assertTrue(frame.headers().contains("content-type"));
        assertFalse(frame.headers().contains("current-time"));

        StompContentSubframe content = channel.readInbound();
        String s = content.content().toString(UTF_8);
        assertEquals("some body", s);
        content.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testValidateHeadersDecodingDisabled() do?
testValidateHeadersDecodingDisabled() is a function in the netty codebase, defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java.
Where is testValidateHeadersDecodingDisabled() defined?
testValidateHeadersDecodingDisabled() is defined in codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java at line 165.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free