Home / Function/ testTooLongLine2() — netty Function Reference

testTooLongLine2() — netty Function Reference

Architecture documentation for the testTooLongLine2() function in LineBasedFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  90987902_3909_278f_5a88_d2cba0f519b9["testTooLongLine2()"]
  619914ab_a3f8_75d9_9843_7bd13a7540ec["LineBasedFrameDecoderTest"]
  90987902_3909_278f_5a88_d2cba0f519b9 -->|defined in| 619914ab_a3f8_75d9_9843_7bd13a7540ec
  style 90987902_3909_278f_5a88_d2cba0f519b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java lines 92–111

    @Test
    public void testTooLongLine2() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new LineBasedFrameDecoder(16, false, false));

        assertFalse(ch.writeInbound(copiedBuffer("12345678901234567", CharsetUtil.US_ASCII)));
        try {
            ch.writeInbound(copiedBuffer("890\r\nfirst\r\n", CharsetUtil.US_ASCII));
            fail();
        } catch (Exception e) {
            assertInstanceOf(TooLongFrameException.class, e);
        }

        ByteBuf buf = ch.readInbound();
        ByteBuf buf2 = copiedBuffer("first\r\n", CharsetUtil.US_ASCII);
        assertEquals(buf2, buf);
        assertFalse(ch.finish());

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free