Home / Function/ testOneBufferForStompFrameWithEmptyContent() — netty Function Reference

testOneBufferForStompFrameWithEmptyContent() — netty Function Reference

Architecture documentation for the testOneBufferForStompFrameWithEmptyContent() function in StompSubframeEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  902b4a42_733f_2560_18f2_9cb0522d94f8["testOneBufferForStompFrameWithEmptyContent()"]
  0e44bb12_a1e9_f7b7_24f3_1c502d6e2848["StompSubframeEncoderTest"]
  902b4a42_733f_2560_18f2_9cb0522d94f8 -->|defined in| 0e44bb12_a1e9_f7b7_24f3_1c502d6e2848
  style 902b4a42_733f_2560_18f2_9cb0522d94f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeEncoderTest.java lines 90–103

    @Test
    public void testOneBufferForStompFrameWithEmptyContent() {
        StompFrame connectedFrame = new DefaultStompFrame(StompCommand.CONNECTED);
        connectedFrame.headers().set(StompHeaders.VERSION, "1.2");

        assertTrue(channel.writeOutbound(connectedFrame));

        ByteBuf stompBuffer = channel.readOutbound();

        assertNotNull(stompBuffer);
        assertNull(channel.readOutbound());
        assertEquals("CONNECTED\nversion:1.2\n\n\0", stompBuffer.toString(CharsetUtil.UTF_8));
        assertTrue(stompBuffer.release());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free