Class TestDefaultRetryPolicyProvider

  • All Implemented Interfaces:
    junit.framework.Test

    public class TestDefaultRetryPolicyProvider
    extends junit.framework.TestCase
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void test202Handling()
      Use http://httpbin.org/ to simulate specific response shapes for testing
      void test503Handling()
      Use http://httpbin.org/ to simulate specific response shapes for testing
      void testShouldRetryOnError()  
      void testShouldRetryOnResponse()  
      • Methods inherited from class junit.framework.TestCase

        countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
      • Methods inherited from class junit.framework.Assert

        assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
    • Constructor Detail

      • TestDefaultRetryPolicyProvider

        public TestDefaultRetryPolicyProvider()
    • Method Detail

      • testShouldRetryOnError

        public void testShouldRetryOnError()
                                    throws Exception
        Throws:
        Exception
      • testShouldRetryOnResponse

        public void testShouldRetryOnResponse()
                                       throws Exception
        Throws:
        Exception
      • test503Handling

        public void test503Handling()
                             throws Exception
        Use http://httpbin.org/ to simulate specific response shapes for testing
        Throws:
        Exception
      • test202Handling

        public void test202Handling()
                             throws Exception
        Use http://httpbin.org/ to simulate specific response shapes for testing
        Throws:
        Exception