Home / Function/ testMultipleJsonObjectsOverMultipleWrites() — netty Function Reference

testMultipleJsonObjectsOverMultipleWrites() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java lines 55–74

    @Test
    public void testMultipleJsonObjectsOverMultipleWrites() {
        EmbeddedChannel ch = new EmbeddedChannel(new JsonObjectDecoder());

        String objectPart1 = "{\"name\":\"Jo";
        String objectPart2 = "hn\"}{\"name\":\"John\"}{\"name\":\"Jo";
        String objectPart3 = "hn\"}";

        ch.writeInbound(Unpooled.copiedBuffer(objectPart1, CharsetUtil.UTF_8));
        ch.writeInbound(Unpooled.copiedBuffer(objectPart2, CharsetUtil.UTF_8));
        ch.writeInbound(Unpooled.copiedBuffer(objectPart3, CharsetUtil.UTF_8));

        for (int i = 0; i < 3; i++) {
            ByteBuf res = ch.readInbound();
            assertEquals("{\"name\":\"John\"}", res.toString(CharsetUtil.UTF_8));
            res.release();
        }

        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free