Package net.buffalo.protocal.io

Examples of net.buffalo.protocal.io.DefaultUnmarshallingContext


  private UnmarshallingContext unmashallingContext;

  protected void setUp() throws Exception {
    super.setUp();
    unmashallingContext = new DefaultUnmarshallingContext(null, null);   
  }
View Full Code Here


        "<string>friend</string><ref>1</ref></map></map>" +
        "<ref>2</ref>" +
        "</list></buffalo-call>";
   
    StreamReader streamReader = TestUtils.createStreamReader(string);
    unmashallingContext = new DefaultUnmarshallingContext(new DefaultConverterLookup(), streamReader);
    List list = (List) unmashallingContext.convertAnother();
    assertEquals(2, list.size());
    People p1 = (People) list.get(0);
    People p2 = (People) list.get(1);
    assertEquals(p1, p2.getFriend());
View Full Code Here

        "<string>sex</string><boolean>0</boolean>" +
        "<string>friend</string><ref>0</ref></map></map>" +
        "</buffalo-call>";
   
    StreamReader streamReader = TestUtils.createStreamReader(string);
    unmashallingContext = new DefaultUnmarshallingContext(new DefaultConverterLookup(), streamReader);
    People p1 = (People) unmashallingContext.convertAnother();
    People p2 = p1.getFriend();
    assertNotNull(p2);
    assertEquals(p1, p2.getFriend());
    assertEquals(p2, p1.getFriend());
View Full Code Here

TOP

Related Classes of net.buffalo.protocal.io.DefaultUnmarshallingContext

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.