Home / Function/ testEncode() — netty Function Reference

testEncode() — netty Function Reference

Architecture documentation for the testEncode() function in CompatibleObjectEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  74770f98_1f4d_593e_cf30_acb799e66e63["testEncode()"]
  8313722a_d7bd_b903_b703_f08418dc010a["CompatibleObjectEncoderTest"]
  74770f98_1f4d_593e_cf30_acb799e66e63 -->|defined in| 8313722a_d7bd_b903_b703_f08418dc010a
  b528ba90_5706_e201_32eb_16a4b92ede7c["testMultipleEncodeReferenceCount()"]
  b528ba90_5706_e201_32eb_16a4b92ede7c -->|calls| 74770f98_1f4d_593e_cf30_acb799e66e63
  style 74770f98_1f4d_593e_cf30_acb799e66e63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/serialization/CompatibleObjectEncoderTest.java lines 40–50

    private static void testEncode(EmbeddedChannel channel, TestSerializable original)
            throws IOException, ClassNotFoundException {
        channel.writeOutbound(original);
        Object o = channel.readOutbound();
        ByteBuf buf = (ByteBuf) o;
        try (ObjectInputStream ois = new ObjectInputStream(new ByteBufInputStream(buf))) {
            assertEquals(original, ois.readObject());
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testEncode() do?
testEncode() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/serialization/CompatibleObjectEncoderTest.java.
Where is testEncode() defined?
testEncode() is defined in codec-base/src/test/java/io/netty/handler/codec/serialization/CompatibleObjectEncoderTest.java at line 40.
What calls testEncode()?
testEncode() is called by 1 function(s): testMultipleEncodeReferenceCount.

Analyze Your Own Codebase

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

Try Supermodel Free