testOneJsonObjectPerWrite() — netty Function Reference
Architecture documentation for the testOneJsonObjectPerWrite() function in JsonObjectDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d7cbeeac_b48b_6a05_e696_f195d59aa0bc["testOneJsonObjectPerWrite()"] 6e0a0e48_218c_0ee1_ac6e_2abf169a9f38["JsonObjectDecoderTest"] d7cbeeac_b48b_6a05_e696_f195d59aa0bc -->|defined in| 6e0a0e48_218c_0ee1_ac6e_2abf169a9f38 style d7cbeeac_b48b_6a05_e696_f195d59aa0bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java lines 307–330
@Test
public void testOneJsonObjectPerWrite() {
EmbeddedChannel ch = new EmbeddedChannel(new JsonObjectDecoder());
String object1 = "{\"key\" : \"value1\"}",
object2 = "{\"key\" : \"value2\"}",
object3 = "{\"key\" : \"value3\"}";
ch.writeInbound(Unpooled.copiedBuffer(object1, CharsetUtil.UTF_8));
ch.writeInbound(Unpooled.copiedBuffer(object2, CharsetUtil.UTF_8));
ch.writeInbound(Unpooled.copiedBuffer(object3, CharsetUtil.UTF_8));
ByteBuf res = ch.readInbound();
assertEquals(object1, res.toString(CharsetUtil.UTF_8));
res.release();
res = ch.readInbound();
assertEquals(object2, res.toString(CharsetUtil.UTF_8));
res.release();
res = ch.readInbound();
assertEquals(object3, res.toString(CharsetUtil.UTF_8));
res.release();
assertFalse(ch.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testOneJsonObjectPerWrite() do?
testOneJsonObjectPerWrite() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java.
Where is testOneJsonObjectPerWrite() defined?
testOneJsonObjectPerWrite() is defined in codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java at line 307.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free