> + * @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());

Better to use testng assertFalse?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/36/files#r4735304

Reply via email to