Package com.dianping.cat.configuration.client.transform

Examples of com.dianping.cat.configuration.client.transform.DefaultXmlBuilder


  @Test
  public void testConfig() throws Exception {
    String source = Files.forIO().readFrom(getClass().getResourceAsStream("config.xml"), "utf-8");
    ClientConfig 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.configuration.client.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.