Home / Class/ StringDecoderTest Class — netty Architecture

StringDecoderTest Class — netty Architecture

Architecture documentation for the StringDecoderTest class in StringDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  de3974c3_4a53_7029_c74e_de12b326978c["StringDecoderTest"]
  6527f6d1_aafe_6089_87c7_0417024295ab["StringDecoderTest.java"]
  de3974c3_4a53_7029_c74e_de12b326978c -->|defined in| 6527f6d1_aafe_6089_87c7_0417024295ab
  ebece854_7d01_289f_484e_8cfd1c56dcaa["testDecode()"]
  de3974c3_4a53_7029_c74e_de12b326978c -->|method| ebece854_7d01_289f_484e_8cfd1c56dcaa

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/string/StringDecoderTest.java lines 29–42

public class StringDecoderTest {

    @Test
    public void testDecode() {
        String msg = "abc123";
        ByteBuf byteBuf = Unpooled.copiedBuffer(msg, CharsetUtil.UTF_8);
        EmbeddedChannel channel = new EmbeddedChannel(new StringDecoder());
        assertTrue(channel.writeInbound(byteBuf));
        String result = channel.readInbound();
        assertEquals(msg, result);
        assertNull(channel.readInbound());
        assertFalse(channel.finish());
    }
}

Frequently Asked Questions

What is the StringDecoderTest class?
StringDecoderTest is a class in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/string/StringDecoderTest.java.
Where is StringDecoderTest defined?
StringDecoderTest is defined in codec-base/src/test/java/io/netty/handler/codec/string/StringDecoderTest.java at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free