Home / Class/ SerialMarshallingDecoderTest Class — netty Architecture

SerialMarshallingDecoderTest Class — netty Architecture

Architecture documentation for the SerialMarshallingDecoderTest class in SerialMarshallingDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4d11b19e_0982_061c_77d5_100ef2d3c203["SerialMarshallingDecoderTest"]
  7d2bf0f5_57ea_d5a1_8f7a_4188f98439ff["SerialMarshallingDecoderTest.java"]
  4d11b19e_0982_061c_77d5_100ef2d3c203 -->|defined in| 7d2bf0f5_57ea_d5a1_8f7a_4188f98439ff
  f9d24788_0bd6_02d8_1a29_7935f58d821b["ByteBuf()"]
  4d11b19e_0982_061c_77d5_100ef2d3c203 -->|method| f9d24788_0bd6_02d8_1a29_7935f58d821b
  124d0392_b906_167c_82dd_860806171ac5["ChannelHandler()"]
  4d11b19e_0982_061c_77d5_100ef2d3c203 -->|method| 124d0392_b906_167c_82dd_860806171ac5
  fc6317c5_602b_d8cc_4453_4a7d6cfb78e3["onTooBigFrame()"]
  4d11b19e_0982_061c_77d5_100ef2d3c203 -->|method| fc6317c5_602b_d8cc_4453_4a7d6cfb78e3

Relationship Graph

Source Code

codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/SerialMarshallingDecoderTest.java lines 28–52

public class SerialMarshallingDecoderTest extends SerialCompatibleMarshallingDecoderTest {

    @Override
    protected ByteBuf input(byte[] input) {
        ByteBuf length = Unpooled.buffer(4);
        length.writeInt(input.length);
        return Unpooled.wrappedBuffer(length, Unpooled.wrappedBuffer(input));
    }

    @Override
    protected ChannelHandler createDecoder(int maxObjectSize) {
        return new MarshallingDecoder(createProvider(createMarshallerFactory(),
                createMarshallingConfig()), maxObjectSize);
    }

    @Override
    protected void onTooBigFrame(EmbeddedChannel ch, ByteBuf input) {
        try {
            ch.writeInbound(input);
            fail();
        } catch (CodecException e) {
            assertEquals(TooLongFrameException.class, e.getClass());
        }
    }
}

Frequently Asked Questions

What is the SerialMarshallingDecoderTest class?
SerialMarshallingDecoderTest is a class in the netty codebase, defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/SerialMarshallingDecoderTest.java.
Where is SerialMarshallingDecoderTest defined?
SerialMarshallingDecoderTest is defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/SerialMarshallingDecoderTest.java at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free