Package com.dianping.cat.consumer.problem.model.transform

Examples of com.dianping.cat.consumer.problem.model.transform.DefaultXmlBuilder


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

    Assert.assertEquals(expected.replace("\r", ""), xml.replace("\r", ""));
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.problem.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.