> + * @author Adrian Cole
> + */
> +@Test(groups = "unit", testName = "AWSServerErrorRetryHandlerTest")
> +public class AWSServerErrorRetryHandlerTest {
> + @Test
> + public void test500DoesNotRetry() {
> +
> + AWSUtils utils = createMock(AWSUtils.class);
> + HttpCommand command = createMock(HttpCommand.class);
> +
> + replay(utils, command);
> +
> + AWSServerErrorRetryHandler retry = new
> AWSServerErrorRetryHandler(utils,
> + ImmutableSet.<String> of());
> +
> + assert !retry.shouldRetryRequest(command,
> HttpResponse.builder().statusCode(INTERNAL_SERVER_ERROR.getStatusCode()).build());
C&P fun - switching.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/36/files#r4735330