Home / Function/ testDeserialization() — netty Function Reference

testDeserialization() — netty Function Reference

Architecture documentation for the testDeserialization() function in DefaultChannelIdTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c8694f39_0cfa_09b2_fa3e_9e4e1b22de4b["testDeserialization()"]
  0daa1ce3_4bc0_db70_656c_f03cb2bebe1f["DefaultChannelIdTest"]
  c8694f39_0cfa_09b2_fa3e_9e4e1b22de4b -->|defined in| 0daa1ce3_4bc0_db70_656c_f03cb2bebe1f
  style c8694f39_0cfa_09b2_fa3e_9e4e1b22de4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelIdTest.java lines 81–108

    @Test
    public void testDeserialization() throws Exception {
        // DefaultChannelId with 8 byte machineId
        final DefaultChannelId c8 = new DefaultChannelId(
                new byte[] {
                        (byte) 0x01, (byte) 0x23, (byte) 0x45, (byte) 0x67,
                        (byte) 0x89, (byte) 0xab, (byte) 0xcd, (byte) 0xef
                },
                0x000052af,
                0x00000000,
                0x06504f638eb4c386L,
                0xd964df5e);

        // DefaultChannelId with 6 byte machineId
        final DefaultChannelId c6 =
                new DefaultChannelId(
                        new byte[] {
                                (byte) 0x01, (byte) 0x23, (byte) 0x45, (byte) 0x67,
                                (byte) 0x89, (byte) 0xab,
                        },
                        0xce005283,
                        0x00000001,
                        0x069e6dce9eb4516fL,
                        0x721757b7);

        assertEquals("0123456789abcdef-000052af-00000000-06504f638eb4c386-d964df5e", c8.asLongText());
        assertEquals("0123456789ab-ce005283-00000001-069e6dce9eb4516f-721757b7", c6.asLongText());
    }

Domain

Subdomains

Frequently Asked Questions

What does testDeserialization() do?
testDeserialization() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelIdTest.java.
Where is testDeserialization() defined?
testDeserialization() is defined in transport/src/test/java/io/netty/channel/DefaultChannelIdTest.java at line 81.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free