shouldDecodeWithoutHeader() — netty Function Reference
Architecture documentation for the shouldDecodeWithoutHeader() function in XmlDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fbaf90be_e82f_9da2_b0a4_c1860c9f2f1f["shouldDecodeWithoutHeader()"] 71eec9e7_c739_c052_076b_29d3db70b0ba["XmlDecoderTest"] fbaf90be_e82f_9da2_b0a4_c1860c9f2f1f -->|defined in| 71eec9e7_c739_c052_076b_29d3db70b0ba 5d218799_ef8a_7b9b_ae2d_2b4c7274a9db["write()"] fbaf90be_e82f_9da2_b0a4_c1860c9f2f1f -->|calls| 5d218799_ef8a_7b9b_ae2d_2b4c7274a9db style fbaf90be_e82f_9da2_b0a4_c1860c9f2f1f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java lines 266–296
@Test
public void shouldDecodeWithoutHeader() {
Object temp;
write(XML4);
temp = channel.readInbound();
assertInstanceOf(XmlDocumentStart.class, temp);
assertNull(((XmlDocumentStart) temp).version());
assertEquals("UTF-8", ((XmlDocumentStart) temp).encoding());
assertFalse(((XmlDocumentStart) temp).standalone());
assertNull(((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
Source
Frequently Asked Questions
What does shouldDecodeWithoutHeader() do?
shouldDecodeWithoutHeader() is a function in the netty codebase, defined in codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java.
Where is shouldDecodeWithoutHeader() defined?
shouldDecodeWithoutHeader() is defined in codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java at line 266.
What does shouldDecodeWithoutHeader() call?
shouldDecodeWithoutHeader() 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