Home / Function/ testUtf8FrameEncoding() — netty Function Reference

testUtf8FrameEncoding() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeEncoderTest.java lines 75–88

    @Test
    public void testUtf8FrameEncoding() {
        StompFrame frame = new DefaultStompFrame(StompCommand.SEND,
                                                 Unpooled.wrappedBuffer("body".getBytes(CharsetUtil.UTF_8)));
        StompHeaders incoming = frame.headers();
        incoming.set(StompHeaders.DESTINATION, "/queue/№11±♛нетти♕");
        incoming.set(StompHeaders.CONTENT_TYPE, AsciiString.of("text/plain"));

        channel.writeOutbound(frame);

        ByteBuf fullFrame = channel.readOutbound();
        assertEquals(SEND_FRAME_UTF8, fullFrame.toString(CharsetUtil.UTF_8));
        assertTrue(fullFrame.release());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free