Home / Function/ testTooLongLine1() — netty Function Reference

testTooLongLine1() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java lines 72–90

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

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

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free