Package com.google.api.explorer.client.base.rpc

Examples of com.google.api.explorer.client.base.rpc.RpcApiRequest


    JSONObject params = new JSONObject();
    root.put("params", params);
    params.put("param1", new JSONString("value1"));

    ApiService service = RpcApiService.Helper.fromString("{}");
    RpcApiRequest request = new RpcApiRequest(service, mockMethod);

    request.setBody(root);

    ListMultimap<String, String> paramValues = request.getParamValues();
    assertEquals(Sets.newHashSet("param1"), paramValues.keySet());
    assertEquals(ImmutableList.of("\"value1\""), paramValues.get("param1"));

    assertEquals(root.toString(), request.getRequestBody());
  }
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.base.rpc.RpcApiRequest

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.