Home / Function/ testSimpleUnmarshalling() — netty Function Reference

testSimpleUnmarshalling() — netty Function Reference

Architecture documentation for the testSimpleUnmarshalling() function in AbstractCompatibleMarshallingDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cb8b6f64_fcf0_8672_e2dc_3b2d8386330c["testSimpleUnmarshalling()"]
  62eb7f35_69a6_94a1_2fa1_27bfbab3c2c9["AbstractCompatibleMarshallingDecoderTest"]
  cb8b6f64_fcf0_8672_e2dc_3b2d8386330c -->|defined in| 62eb7f35_69a6_94a1_2fa1_27bfbab3c2c9
  style cb8b6f64_fcf0_8672_e2dc_3b2d8386330c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/AbstractCompatibleMarshallingDecoderTest.java lines 40–64

    @Test
    public void testSimpleUnmarshalling() throws IOException {
        MarshallerFactory marshallerFactory = createMarshallerFactory();
        MarshallingConfiguration configuration = createMarshallingConfig();

        EmbeddedChannel ch = new EmbeddedChannel(createDecoder(Integer.MAX_VALUE));

        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        Marshaller marshaller = marshallerFactory.createMarshaller(configuration);
        marshaller.start(Marshalling.createByteOutput(bout));
        marshaller.writeObject(testObject);
        marshaller.finish();
        marshaller.close();

        byte[] testBytes = bout.toByteArray();

        ch.writeInbound(input(testBytes));
        assertTrue(ch.finish());

        String unmarshalled = ch.readInbound();

        assertEquals(testObject, unmarshalled);

        assertNull(ch.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does testSimpleUnmarshalling() do?
testSimpleUnmarshalling() is a function in the netty codebase, defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/AbstractCompatibleMarshallingDecoderTest.java.
Where is testSimpleUnmarshalling() defined?
testSimpleUnmarshalling() is defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/AbstractCompatibleMarshallingDecoderTest.java at line 40.

Analyze Your Own Codebase

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

Try Supermodel Free