> + public void test408ShouldRetry() {
> + HttpCommand command = createMock(HttpCommand.class);
> + HttpResponse response = createMock(HttpResponse.class);
> + @SuppressWarnings("unchecked")
> + LoadingCache<Credentials, Access> cache =
> createMock(LoadingCache.class);
> + BackoffLimitedRetryHandler backoffHandler =
> createMock(BackoffLimitedRetryHandler.class);
> +
> + expect(response.getPayload()).andReturn(Payloads.newStringPayload(
> + "The server has waited too long for the request to be sent
> by the client.")).times(2);
> + expect(backoffHandler.shouldRetryRequest(command,
> response)).andReturn(true).once();
> + expect(response.getStatusCode()).andReturn(408).once();
> +
> + replay(command);
> + replay(response);
> + replay(cache);
> + replay(backoffHandler);
[minor] `replay(command, response, cache, backoffHandler)`?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/369/files#r12774725