> + expectLastCall().anyTimes();
> +
> +
> expect(response.getPayload()).andReturn(Payloads.newStringPayload("")).anyTimes();
> + expect(response.getStatusCode()).andReturn(401).anyTimes();
> +
> + replay(command);
> + replay(request);
> + replay(response);
> + replay(cache);
> +
> + RetryOnRenew retry = new RetryOnRenew(cache);
> +
> + for(int n=0; n<4; n++)
> + assertTrue(retry.shouldRetryRequest(command, response));
> +
> + assertFalse(retry.shouldRetryRequest(command, response));
`assertTrue(retry.shouldRetryRequest(command, response), "Expected retry to
fail on attempt 5");`?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/104/files#r6351780