testDecode() — netty Function Reference
Architecture documentation for the testDecode() function in StringDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ebece854_7d01_289f_484e_8cfd1c56dcaa["testDecode()"] de3974c3_4a53_7029_c74e_de12b326978c["StringDecoderTest"] ebece854_7d01_289f_484e_8cfd1c56dcaa -->|defined in| de3974c3_4a53_7029_c74e_de12b326978c style ebece854_7d01_289f_484e_8cfd1c56dcaa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/string/StringDecoderTest.java lines 31–41
@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());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecode() do?
testDecode() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/string/StringDecoderTest.java.
Where is testDecode() defined?
testDecode() is defined in codec-base/src/test/java/io/netty/handler/codec/string/StringDecoderTest.java at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free