Home / Class/ RiverMarshallingDecoderTest Class — netty Architecture

RiverMarshallingDecoderTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  ce5e47c9_f6af_3690_978a_1c07227d5669["RiverMarshallingDecoderTest"]
  912b1914_1ead_6794_120a_f6a8a08058cd["RiverMarshallingDecoderTest.java"]
  ce5e47c9_f6af_3690_978a_1c07227d5669 -->|defined in| 912b1914_1ead_6794_120a_f6a8a08058cd
  add2f2e7_c164_2332_6eb8_3f7d6b70a871["ByteBuf()"]
  ce5e47c9_f6af_3690_978a_1c07227d5669 -->|method| add2f2e7_c164_2332_6eb8_3f7d6b70a871
  d5cd55b7_c63d_861a_1944_9c23154230d8["ChannelHandler()"]
  ce5e47c9_f6af_3690_978a_1c07227d5669 -->|method| d5cd55b7_c63d_861a_1944_9c23154230d8
  0e19c317_5bac_9160_8f0b_c117eb829dc2["onTooBigFrame()"]
  ce5e47c9_f6af_3690_978a_1c07227d5669 -->|method| 0e19c317_5bac_9160_8f0b_c117eb829dc2

Relationship Graph

Source Code

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

public class RiverMarshallingDecoderTest extends RiverCompatibleMarshallingDecoderTest {

    @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 RiverMarshallingDecoderTest class?
RiverMarshallingDecoderTest is a class in the netty codebase, defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/RiverMarshallingDecoderTest.java.
Where is RiverMarshallingDecoderTest defined?
RiverMarshallingDecoderTest is defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/RiverMarshallingDecoderTest.java at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free