Home / Function/ testSingleFrameChunked() — netty Function Reference

testSingleFrameChunked() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeDecoderTest.java lines 104–137

    @Test
    public void testSingleFrameChunked() {
        EmbeddedChannel channel = new EmbeddedChannel(new StompSubframeDecoder(10000, 5));

        ByteBuf incoming = Unpooled.buffer();
        incoming.writeBytes(StompTestConstants.SEND_FRAME_2.getBytes());
        channel.writeInbound(incoming);

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

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

        content = channel.readInbound();
        s = content.content().toString(UTF_8);
        assertEquals(", que", s);
        content.release();

        content = channel.readInbound();
        s = content.content().toString(UTF_8);
        assertEquals("ue a!", s);
        content.release();

        content = channel.readInbound();
        s = content.content().toString(UTF_8);
        assertEquals("!!", s);
        content.release();

        assertNull(channel.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free