Package net.buffalo.protocal.io

Examples of net.buffalo.protocal.io.StreamReader


        "<boolean>0</boolean>" +
        "<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);
View Full Code Here


        "<string>age</string><int>2</int>" +
        "<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());
View Full Code Here

TOP

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

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.