Home / Function/ testTooLongLineWithFailFast() — netty Function Reference

testTooLongLineWithFailFast() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java lines 113–134

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

        try {
            ch.writeInbound(copiedBuffer("12345678901234567", CharsetUtil.US_ASCII));
            fail();
        } catch (Exception e) {
            assertInstanceOf(TooLongFrameException.class, e);
        }

        assertFalse(ch.writeInbound(copiedBuffer("890", CharsetUtil.US_ASCII)));
        assertTrue(ch.writeInbound(copiedBuffer("123\r\nfirst\r\n", CharsetUtil.US_ASCII)));

        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 testTooLongLineWithFailFast() do?
testTooLongLineWithFailFast() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java.
Where is testTooLongLineWithFailFast() defined?
testTooLongLineWithFailFast() is defined in codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java at line 113.

Analyze Your Own Codebase

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

Try Supermodel Free