CodecXmlTest Class — netty Architecture
Architecture documentation for the CodecXmlTest class in CodecXmlTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7325ba5e_ac6f_48b2_d61f_99e38e6d269e["CodecXmlTest"] fe409e02_d81d_c2ad_6c35_62083f76ffef["CodecXmlTest.java"] 7325ba5e_ac6f_48b2_d61f_99e38e6d269e -->|defined in| fe409e02_d81d_c2ad_6c35_62083f76ffef 50760448_c20d_d701_d2e2_e5f7dfae25ff["testDecoder()"] 7325ba5e_ac6f_48b2_d61f_99e38e6d269e -->|method| 50760448_c20d_d701_d2e2_e5f7dfae25ff
Relationship Graph
Source Code
testsuite-jpms/src/test/java/io/netty/testsuite_jpms/test/CodecXmlTest.java lines 29–50
public class CodecXmlTest {
private static final String XML1 = "<?xml version=\"1.0\"?>" +
"<!DOCTYPE employee SYSTEM \"employee.dtd\">" +
"<?xml-stylesheet type=\"text/css\" href=\"netty.css\"?>" +
"<?xml-test ?>" +
"<employee xmlns:nettya=\"https://netty.io/netty/a\">" +
"<nettya:id>±1</nettya:id>\n" +
"<name ";
@Test
public void testDecoder() {
EmbeddedChannel channel = new EmbeddedChannel(new XmlDecoder());
try {
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(XML1, CharsetUtil.UTF_8)));
Object msg = channel.readInbound();
assertInstanceOf(XmlDocumentStart.class, msg);
} finally {
channel.close();
}
}
}
Source
Frequently Asked Questions
What is the CodecXmlTest class?
CodecXmlTest is a class in the netty codebase, defined in testsuite-jpms/src/test/java/io/netty/testsuite_jpms/test/CodecXmlTest.java.
Where is CodecXmlTest defined?
CodecXmlTest is defined in testsuite-jpms/src/test/java/io/netty/testsuite_jpms/test/CodecXmlTest.java at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free