Package org.apache.shindig.gadgets.http

Examples of org.apache.shindig.gadgets.http.HttpCache


public class OAuthFetcherConfigTest extends EasyMockTestCase {

  @Test
  public void testOAuthFetcherConfig() {
    BlobCrypter crypter = mock(BlobCrypter.class);
    HttpCache cache = mock(HttpCache.class);
    GadgetOAuthTokenStore tokenStore = mock(GadgetOAuthTokenStore.class);
    OAuthFetcherConfig config = new OAuthFetcherConfig(crypter, tokenStore, cache, new TimeSource());
    assertEquals(crypter, config.getStateCrypter());
    assertEquals(cache, config.getHttpCache());
    assertEquals(tokenStore, config.getTokenStore());
View Full Code Here


            entryList)));
        break;
    }
    request.setMethod(method);

    HttpCache nullCache = new HttpCache() {
      public HttpResponse getResponse(HttpCacheKey key, HttpRequest request) {
        return null;
      }

      public HttpResponse addResponse(HttpCacheKey key, HttpRequest request,
View Full Code Here

TOP

Related Classes of org.apache.shindig.gadgets.http.HttpCache

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.