Home / Function/ testSingleByteStream() — netty Function Reference

testSingleByteStream() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java lines 172–186

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

        String json = "{\"foo\" : {\"bar\" : [{},{}]}}";
        for (byte c : json.getBytes(CharsetUtil.UTF_8)) {
            ch.writeInbound(Unpooled.copiedBuffer(new byte[] {c}));
        }

        ByteBuf res = ch.readInbound();
        assertEquals(json, res.toString(CharsetUtil.UTF_8));
        res.release();

        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free