Http2StreamChannelIdTest Class — netty Architecture
Architecture documentation for the Http2StreamChannelIdTest class in Http2StreamChannelIdTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c1fe30a4_a1d0_fd85_639c_7316b7921d57["Http2StreamChannelIdTest"] 66fd14b2_3bc0_9c0a_0c95_068ebb4448eb["Http2StreamChannelIdTest.java"] c1fe30a4_a1d0_fd85_639c_7316b7921d57 -->|defined in| 66fd14b2_3bc0_9c0a_0c95_068ebb4448eb f6202420_7cf9_133c_6637_747b1f6de19e["testSerialization()"] c1fe30a4_a1d0_fd85_639c_7316b7921d57 -->|method| f6202420_7cf9_133c_6637_747b1f6de19e
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamChannelIdTest.java lines 30–58
public class Http2StreamChannelIdTest {
@Test
public void testSerialization() throws Exception {
ChannelId normalInstance = new Http2StreamChannelId(DefaultChannelId.newInstance(), 0);
ByteBuf buf = Unpooled.buffer();
ObjectOutputStream outStream = new ObjectOutputStream(new ByteBufOutputStream(buf));
try {
outStream.writeObject(normalInstance);
} finally {
outStream.close();
}
ObjectInputStream inStream = new ObjectInputStream(new ByteBufInputStream(buf, true));
final ChannelId deserializedInstance;
try {
deserializedInstance = (ChannelId) inStream.readObject();
} finally {
inStream.close();
}
assertEquals(normalInstance, deserializedInstance);
assertEquals(normalInstance.hashCode(), deserializedInstance.hashCode());
assertEquals(0, normalInstance.compareTo(deserializedInstance));
assertEquals(normalInstance.asLongText(), deserializedInstance.asLongText());
assertEquals(normalInstance.asShortText(), deserializedInstance.asShortText());
}
}
Source
Frequently Asked Questions
What is the Http2StreamChannelIdTest class?
Http2StreamChannelIdTest is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamChannelIdTest.java.
Where is Http2StreamChannelIdTest defined?
Http2StreamChannelIdTest is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamChannelIdTest.java at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free