Home / Function/ testDecodeWithInvalidContentBeforeXml() — netty Function Reference

testDecodeWithInvalidContentBeforeXml() — netty Function Reference

Architecture documentation for the testDecodeWithInvalidContentBeforeXml() function in XmlFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  35a5867f_1f66_f7b8_39ac_f0f2c7cc0eaa["testDecodeWithInvalidContentBeforeXml()"]
  13b85bd7_07cb_814c_1ac0_dcb1adb68947["XmlFrameDecoderTest"]
  35a5867f_1f66_f7b8_39ac_f0f2c7cc0eaa -->|defined in| 13b85bd7_07cb_814c_1ac0_dcb1adb68947
  style 35a5867f_1f66_f7b8_39ac_f0f2c7cc0eaa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-xml/src/test/java/io/netty/handler/codec/xml/XmlFrameDecoderTest.java lines 98–108

    @Test
    public void testDecodeWithInvalidContentBeforeXml() {
        XmlFrameDecoder decoder = new XmlFrameDecoder(1048576);
        final EmbeddedChannel ch = new EmbeddedChannel(decoder);
        assertThrows(CorruptedFrameException.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                ch.writeInbound(Unpooled.copiedBuffer("invalid XML<foo/>", CharsetUtil.UTF_8));
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecodeWithInvalidContentBeforeXml() do?
testDecodeWithInvalidContentBeforeXml() is a function in the netty codebase, defined in codec-xml/src/test/java/io/netty/handler/codec/xml/XmlFrameDecoderTest.java.
Where is testDecodeWithInvalidContentBeforeXml() defined?
testDecodeWithInvalidContentBeforeXml() is defined in codec-xml/src/test/java/io/netty/handler/codec/xml/XmlFrameDecoderTest.java at line 98.

Analyze Your Own Codebase

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

Try Supermodel Free