Home / Function/ testSingleFrameWithSplitBodyAndNoContentLength() — netty Function Reference

testSingleFrameWithSplitBodyAndNoContentLength() — netty Function Reference

Architecture documentation for the testSingleFrameWithSplitBodyAndNoContentLength() function in StompSubframeAggregatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e0c2151b_6525_b5e2_6443_ca3f318d4ecf["testSingleFrameWithSplitBodyAndNoContentLength()"]
  515cb9ca_06ef_9a6b_e66b_7e043c0973ff["StompSubframeAggregatorTest"]
  e0c2151b_6525_b5e2_6443_ca3f318d4ecf -->|defined in| 515cb9ca_06ef_9a6b_e66b_7e043c0973ff
  style e0c2151b_6525_b5e2_6443_ca3f318d4ecf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java lines 90–106

    @Test
    public void testSingleFrameWithSplitBodyAndNoContentLength() {
        for (int n = 0; n < StompTestConstants.SEND_FRAMES_3.length; ++n) {
            ByteBuf incoming = Unpooled.buffer();
            incoming.writeBytes(StompTestConstants.SEND_FRAMES_3[n].getBytes());
            channel.writeInbound(incoming);
            channel.flush();
        }

        StompFrame frame = channel.readInbound();
        assertNotNull(frame);
        assertEquals(StompCommand.SEND, frame.command());
        assertEquals("first part of body\nsecond part of body", frame.content().toString(CharsetUtil.UTF_8));
        frame.release();

        assertNull(channel.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free