Home / Function/ testMaxObjectLength() — netty Function Reference

testMaxObjectLength() — netty Function Reference

Architecture documentation for the testMaxObjectLength() function in JsonObjectDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e4a5dfde_0ada_dcd7_61f7_b315926a9025["testMaxObjectLength()"]
  6e0a0e48_218c_0ee1_ac6e_2abf169a9f38["JsonObjectDecoderTest"]
  e4a5dfde_0ada_dcd7_61f7_b315926a9025 -->|defined in| 6e0a0e48_218c_0ee1_ac6e_2abf169a9f38
  style e4a5dfde_0ada_dcd7_61f7_b315926a9025 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java lines 292–305

    @Test
    public void testMaxObjectLength() {
        final EmbeddedChannel ch = new EmbeddedChannel(new JsonObjectDecoder(6));
        try {
            assertThrows(TooLongFrameException.class, new Executable() {
                @Override
                public void execute() throws Throwable {
                    ch.writeInbound(Unpooled.copiedBuffer("[2,4,5]", CharsetUtil.UTF_8));
                }
            });
        } finally {
            assertFalse(ch.finish());
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free