testEncodeDecode() — netty Function Reference
Architecture documentation for the testEncodeDecode() function in FullMemcacheMessageRequestTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 724e13a8_60ba_05ab_c0a6_a47f95b391d3["testEncodeDecode()"] cae74b3e_0230_a399_8484_f050cf211119["FullMemcacheMessageRequestTest"] 724e13a8_60ba_05ab_c0a6_a47f95b391d3 -->|defined in| cae74b3e_0230_a399_8484_f050cf211119 style 724e13a8_60ba_05ab_c0a6_a47f95b391d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/FullMemcacheMessageRequestTest.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));
FullBinaryMemcacheRequest req = new DefaultFullBinaryMemcacheRequest(key, extras, content);
assertTrue(channel.writeOutbound(req));
// header + content
assertEquals(2, channel.outboundMessages().size());
assertTrue(channel.writeInbound(channel.readOutbound(), channel.readOutbound()));
FullBinaryMemcacheRequest 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/FullMemcacheMessageRequestTest.java.
Where is testEncodeDecode() defined?
testEncodeDecode() is defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/FullMemcacheMessageRequestTest.java at line 47.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free