Home / Function/ testMultipleLines() — netty Function Reference

testMultipleLines() — netty Function Reference

Architecture documentation for the testMultipleLines() function in DelimiterBasedFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  66edb85a_7e1e_3d37_41bc_f282e98689a0["testMultipleLines()"]
  c84b0949_622d_fa8a_b9ca_47fdabf11726["DelimiterBasedFrameDecoderTest"]
  66edb85a_7e1e_3d37_41bc_f282e98689a0 -->|defined in| c84b0949_622d_fa8a_b9ca_47fdabf11726
  style 66edb85a_7e1e_3d37_41bc_f282e98689a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/DelimiterBasedFrameDecoderTest.java lines 70–86

    @Test
    public void testMultipleLines() {
        EmbeddedChannel ch = new EmbeddedChannel(new DelimiterBasedFrameDecoder(8192, false,
                Delimiters.lineDelimiter()));
        ch.writeInbound(Unpooled.copiedBuffer("TestLine\r\ng\r\n", Charset.defaultCharset()));

        ByteBuf buf = ch.readInbound();
        assertEquals("TestLine\r\n", buf.toString(Charset.defaultCharset()));

        ByteBuf buf2 = ch.readInbound();
        assertEquals("g\r\n", buf2.toString(Charset.defaultCharset()));
        assertNull(ch.readInbound());
        ch.finish();

        buf.release();
        buf2.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testMultipleLines() do?
testMultipleLines() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/DelimiterBasedFrameDecoderTest.java.
Where is testMultipleLines() defined?
testMultipleLines() is defined in codec-base/src/test/java/io/netty/handler/codec/DelimiterBasedFrameDecoderTest.java at line 70.

Analyze Your Own Codebase

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

Try Supermodel Free