Examples of convertAnother()


Examples of net.buffalo.protocal.io.DefaultMarshallingContext.convertAnother()

    people.add(p1);
    people.add(p2);
   
    StringWriter stringWriter = new StringWriter();
    DefaultMarshallingContext marshallingContext = new DefaultMarshallingContext(new DefaultConverterLookup(), new FastStreamWriter(stringWriter));
    marshallingContext.convertAnother(people);
  }
 
  public void testObjectRefOnly() throws Exception {
    People p1 = new People("1", 1, true);
    People p2 = new People("2", 2, false);
View Full Code Here

Examples of net.buffalo.protocal.io.DefaultUnmarshallingContext.convertAnother()

public class DeserializerTest extends TestCase {
 
  public void testShouldGetCorrectType() throws Exception {
    StreamReader streamReader = TestUtils.createStreamReader("<buffalo-call><string>hi</string></buffalo-call>");
    UnmarshallingContext des = new DefaultUnmarshallingContext(new DefaultConverterLookup(), streamReader);
    Object o = des.convertAnother();
    assertEquals("hi", o);
  }
}
View Full Code Here

Examples of net.buffalo.protocal.io.UnmarshallingContext.convertAnother()

public class DeserializerTest extends TestCase {
 
  public void testShouldGetCorrectType() throws Exception {
    StreamReader streamReader = TestUtils.createStreamReader("<buffalo-call><string>hi</string></buffalo-call>");
    UnmarshallingContext des = new DefaultUnmarshallingContext(new DefaultConverterLookup(), streamReader);
    Object o = des.convertAnother();
    assertEquals("hi", o);
  }
}
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.