Package com.bansheeproject.xmlbuilder

Examples of com.bansheeproject.xmlbuilder.Parser.encode()


    Date date = new Date();
    defaultMappedSimple.dateValue = date;
    defaultMappedSimple.longValue = 1L;
    defaultMappedSimple.string = "stringValue";
   
    String xml = parser.encode(defaultMappedSimple);
   
    StringBuilder expected = new StringBuilder();
    expected.append("<simple><dateValue>");
   
    Calendar calendar = GregorianCalendar.getInstance();
View Full Code Here


   
   
   
    Parser parser = new Parser();
   
    String xml = parser.encode(defaultMappedComplex);
   
    Assert.assertEquals("<outerComplex><stringValue>simpleValue</stringValue></outerComplex>", xml);
  }
 
  @Test
View Full Code Here

   
    defaultMappedComplex.stringValue = "simpleValue";
   
    Parser parser = new Parser();
   
    String xml = parser.encode(defaultMappedComplex);
   
    Assert.assertEquals("<outerComplex><stringValue>simpleValue</stringValue></outerComplex>", xml);
  }
 
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.