Home / Function/ testMultipleFramesDecoding() — netty Function Reference

testMultipleFramesDecoding() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java lines 139–163

    @Test
    public void testMultipleFramesDecoding() {
        ByteBuf incoming = Unpooled.buffer();
        incoming.writeBytes(StompTestConstants.CONNECT_FRAME.getBytes());
        incoming.writeBytes(StompTestConstants.CONNECTED_FRAME.getBytes());
        channel.writeInbound(incoming);

        StompHeadersSubframe frame = channel.readInbound();
        assertNotNull(frame);
        assertEquals(StompCommand.CONNECT, frame.command());

        StompContentSubframe content = channel.readInbound();
        assertSame(LastStompContentSubframe.EMPTY_LAST_CONTENT, content);
        content.release();

        StompHeadersSubframe frame2 = channel.readInbound();
        assertNotNull(frame2);
        assertEquals(StompCommand.CONNECTED, frame2.command());

        StompContentSubframe content2 = channel.readInbound();
        assertSame(LastStompContentSubframe.EMPTY_LAST_CONTENT, content2);
        content2.release();

        assertNull(channel.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free