Package org.opensocial.providers

Examples of org.opensocial.providers.OrkutProvider


public class RequestTestSuite {

  public static class Orkut2LeggedRpcTest extends BaseRequestTest {
    @BeforeClass
    public static void init() {
      client = new Client(new OrkutProvider(false), new OAuth2LeggedScheme(
          "consumerKey", "consumerSecret"));
    }
View Full Code Here


  }

  public static class Orkut2LeggedRestTest extends BaseRequestTest {
    @BeforeClass
    public static void init() {
      client = new Client(new OrkutProvider(true), new OAuth2LeggedScheme(
          "consumerKey", "consumerSecret"));
    }
View Full Code Here

  }

  public static class Orkut3LeggedRpcTest extends BaseRequestTest {
    @BeforeClass
    public static void init() {
      Provider p = new OrkutProvider(false);
      client = new Client(p, new OAuth3LeggedScheme(p, "consumerKey",
          "consumerSecret"));
    }
View Full Code Here

  }

  public static class Orkut3LeggedRestTest extends BaseRequestTest {
    @BeforeClass
    public static void init() {
      Provider p = new OrkutProvider(true);
      client = new Client(p, new OAuth3LeggedScheme(p, "consumerKey",
          "consumerSecret"));
    }
View Full Code Here

  }

  public static class OrkutSecurityTokenRpcTest extends BaseRequestTest {
    @BeforeClass
    public static void init() {
      client = new Client(new OrkutProvider(false), new SecurityTokenScheme(
          "securityToken"));
    }
View Full Code Here

  }

  public static class OrkutSecurityTokenRestTest extends BaseRequestTest {
    @BeforeClass
    public static void init() {
      client = new Client(new OrkutProvider(true), new SecurityTokenScheme(
          "securityToken"));
    }
View Full Code Here

    final String url = "http://example.org/test";
    final Map<String, String> headers = new HashMap<String, String>();

    FCAuthScheme authScheme = new FCAuthScheme(TOKEN);

    HttpMessage message = authScheme.getHttpMessage(new OrkutProvider(), "GET",
        url, headers, null);
    assertEquals(url + "?fcauth=" + TOKEN, message.url.toString());
  }
View Full Code Here

TOP

Related Classes of org.opensocial.providers.OrkutProvider

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.