testEncodeDecode() — netty Function Reference
Architecture documentation for the testEncodeDecode() function in FullMemcacheMessageResponseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a7fd0259_7124_190b_d818_c9b3b4f2db18["testEncodeDecode()"] 22495206_3c93_60d7_837f_6202740f0f78["FullMemcacheMessageResponseTest"] a7fd0259_7124_190b_d818_c9b3b4f2db18 -->|defined in| 22495206_3c93_60d7_837f_6202740f0f78 style a7fd0259_7124_190b_d818_c9b3b4f2db18 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/FullMemcacheMessageResponseTest.java lines 47–63
@Test
public void testEncodeDecode() throws Exception {
ByteBuf key = Unpooled.wrappedBuffer("key".getBytes(CharsetUtil.UTF_8));
ByteBuf content = Unpooled.wrappedBuffer("content".getBytes(CharsetUtil.UTF_8));
ByteBuf extras = Unpooled.wrappedBuffer("extras".getBytes(CharsetUtil.UTF_8));
FullBinaryMemcacheResponse resp = new DefaultFullBinaryMemcacheResponse(key, extras, content);
assertTrue(channel.writeOutbound(resp));
// header + content
assertEquals(2, channel.outboundMessages().size());
assertTrue(channel.writeInbound(channel.readOutbound(), channel.readOutbound()));
FullBinaryMemcacheResponse read = channel.readInbound();
assertEquals("key", read.key().toString(CharsetUtil.UTF_8));
assertEquals("content", read.content().toString(CharsetUtil.UTF_8));
assertEquals("extras", read.extras().toString(CharsetUtil.UTF_8));
read.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testEncodeDecode() do?
testEncodeDecode() is a function in the netty codebase, defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/FullMemcacheMessageResponseTest.java.
Where is testEncodeDecode() defined?
testEncodeDecode() is defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/FullMemcacheMessageResponseTest.java at line 47.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free