Package com.google.appengine.tools.cloudstorage.RetryHelper

Examples of com.google.appengine.tools.cloudstorage.RetryHelper.Context


    return new RetryParams.Builder();
  }

  private static void verifyRequestTimeoutMillisForCurrentAttempt(RetryParams params,
      int value, double timeout) {
    Context ctx = mock(Context.class);
    stub(ctx.getAttemptNumber()).toReturn(value);
    RetryHelper.setContext(ctx);
    assertEquals(timeout, params.getRequestTimeoutMillisForCurrentAttempt(), 1);
    RetryHelper.setContext(null);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.cloudstorage.RetryHelper.Context

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.