Home / Function/ testFrameWithContentLengthAndWithoutNullEnding() — netty Function Reference

testFrameWithContentLengthAndWithoutNullEnding() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java lines 230–246

    @Test
    void testFrameWithContentLengthAndWithoutNullEnding() {
        channel = new EmbeddedChannel(new StompSubframeDecoder(true));

        ByteBuf incoming = Unpooled.wrappedBuffer(FRAME_WITHOUT_NULL_ENDING.getBytes(UTF_8));
        assertTrue(channel.writeInbound(incoming));

        StompHeadersSubframe headersFrame = channel.readInbound();
        assertNotNull(headersFrame);
        assertFalse(headersFrame.decoderResult().isFailure());

        StompContentSubframe lastContentFrame = channel.readInbound();
        assertNotNull(lastContentFrame);
        assertTrue(lastContentFrame.decoderResult().isFailure());
        assertEquals("unexpected byte in buffer 1 while expecting NULL byte",
                     lastContentFrame.decoderResult().cause().getMessage());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free