Package com.dianping.cat.status.model.transform

Examples of com.dianping.cat.status.model.transform.DefaultXmlBuilder


public class StatusInfoTest {
  @Test
  public void testXml() throws Exception {
    String source = Files.forIO().readFrom(getClass().getResourceAsStream("status.xml"), "utf-8");
    StatusInfo root = DefaultSaxParser.parse(source);
    String xml = new DefaultXmlBuilder().buildXml(root);
    String expected = source;

    Assert.assertEquals("XML is not well parsed!", expected.replace("\r", ""), xml.replace("\r", ""));
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.status.model.transform.DefaultXmlBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.