Package com.bansheeproject.builder.entity.test

Examples of com.bansheeproject.builder.entity.test.Simple


 
  @Test
  public void sanityTest() {
   
    Parser parser = new Parser();
    Simple simple = new Simple();
   
   
   
    simple.stringValue = "stringValueContent";
   
View Full Code Here


  @Test
  public void sanityTest2() {
    Parser parser = new Parser();
    Complex complex = new Complex();
   
    complex.simple = new Simple();
    complex.simple.stringValue = "stringValueContent";
   
    String xml = parser.encode(complex);
   
    Assert.assertEquals("<stringValue>stringValueContent</stringValue>", xml);
View Full Code Here

 
  @Test
  public void testMapped2() {
    DefaultMappedComplex defaultMappedComplex = new DefaultMappedComplex();
   
    defaultMappedComplex.simple = new Simple();
   
    defaultMappedComplex.simple.stringValue = "simpleValue";
   
   
   
View Full Code Here

  @Test
  public void testSimpleUnmarshall() {
    String xml = "<stringValue>test</stringValue>";
   
    Parser parser = new Parser();
    Simple simple = (Simple)parser.decode(xml, Simple.class);
   
   
    Assert.assertNotNull(simple);
    Assert.assertEquals("test", simple.stringValue);
   
View Full Code Here

TOP

Related Classes of com.bansheeproject.builder.entity.test.Simple

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.