Home / Function/ shouldDecodeXmlHeader() — netty Function Reference

shouldDecodeXmlHeader() — netty Function Reference

Architecture documentation for the shouldDecodeXmlHeader() function in XmlDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  14a4f974_f52a_836b_a6fc_21f8a0a5b690["shouldDecodeXmlHeader()"]
  71eec9e7_c739_c052_076b_29d3db70b0ba["XmlDecoderTest"]
  14a4f974_f52a_836b_a6fc_21f8a0a5b690 -->|defined in| 71eec9e7_c739_c052_076b_29d3db70b0ba
  5d218799_ef8a_7b9b_ae2d_2b4c7274a9db["write()"]
  14a4f974_f52a_836b_a6fc_21f8a0a5b690 -->|calls| 5d218799_ef8a_7b9b_ae2d_2b4c7274a9db
  style 14a4f974_f52a_836b_a6fc_21f8a0a5b690 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java lines 231–261

    @Test
    public void shouldDecodeXmlHeader() {
        Object temp;

        write(XML3);

        temp = channel.readInbound();
        assertInstanceOf(XmlDocumentStart.class, temp);
        assertEquals("1.1", ((XmlDocumentStart) temp).version());
        assertEquals("UTF-8", ((XmlDocumentStart) temp).encoding());
        assertTrue(((XmlDocumentStart) temp).standalone());
        assertEquals("UTF-8", ((XmlDocumentStart) temp).encodingScheme());

        temp = channel.readInbound();
        assertInstanceOf(XmlElementStart.class, temp);
        assertEquals("netty", ((XmlElementStart) temp).name());
        assertEquals("", ((XmlElementStart) temp).prefix());
        assertEquals("", ((XmlElementStart) temp).namespace());
        assertEquals(0, ((XmlElementStart) temp).attributes().size());
        assertEquals(0, ((XmlElementStart) temp).namespaces().size());

        temp = channel.readInbound();
        assertInstanceOf(XmlElementEnd.class, temp);
        assertEquals("netty", ((XmlElementEnd) temp).name());
        assertEquals("", ((XmlElementEnd) temp).prefix());
        assertEquals("", ((XmlElementEnd) temp).namespace());
        assertEquals(0, ((XmlElementEnd) temp).namespaces().size());

        temp = channel.readInbound();
        assertNull(temp);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does shouldDecodeXmlHeader() do?
shouldDecodeXmlHeader() is a function in the netty codebase, defined in codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java.
Where is shouldDecodeXmlHeader() defined?
shouldDecodeXmlHeader() is defined in codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java at line 231.
What does shouldDecodeXmlHeader() call?
shouldDecodeXmlHeader() calls 1 function(s): write.

Analyze Your Own Codebase

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

Try Supermodel Free