Package net.buffalo.protocal

Examples of net.buffalo.protocal.BuffaloCall


    List arguments = new ArrayList();
    while(in.hasMoreChildren()) {
      arguments.add(unmarshallingContext.convertAnother());
    }
    in.close();
    return new BuffaloCall(methodName, arguments.toArray());
  }
View Full Code Here


import net.buffalo.protocal.BuffaloProtocal;
import junit.framework.TestCase;

public class DeserializerFunctionalTest extends TestCase {
  public void testShouldDeserialize() throws Exception {
    BuffaloCall call = BuffaloProtocal.getInstance().deserialize("<buffalo-call>" +
        "<method>sum</method>" +
        "<double>0.1</double>" +
        "<double>0.2</double>" +
        "</buffalo-call>");
   
    assertEquals("sum", call.getMethodName());
    assertEquals(2, call.getArguments().length);
    assertTrue(call.getArguments()[0] instanceof Double);
  }
View Full Code Here

TOP

Related Classes of net.buffalo.protocal.BuffaloCall

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.