Package org.opensocial.providers

Examples of org.opensocial.providers.ShindigProvider


    headers.put("Content-Type", "application/json");
  }

  @Test
  public void testSetFieldsParameterRpc() throws RequestException, IOException {
    Provider provider = new ShindigProvider();
    Client client = new Client(provider, authScheme, httpClient);
    Request request = new Request("/service/", "service.test", "GET");

    String fieldsString = "\"fields\":[\"field1\",\"field2\"]";
    String url = removeTrailingSlash(provider.getRpcEndpoint());

    expect(authScheme.getHttpMessage(
        eq(provider), eq("POST"), eq(url), eq(headers),
        EasyMock.cmp(fieldsString.getBytes(),
            new BodyContainsComparator(), LogicalOperator.EQUAL))).andReturn(
View Full Code Here

TOP

Related Classes of org.opensocial.providers.ShindigProvider

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.