Class CircuitBreakerIntegrationTest


  • public class CircuitBreakerIntegrationTest
    extends Object
    Integration test for the Circuit Breaker functionality using a real HTTP client against httpstat.us service. Note: This test makes real HTTP calls and depends on an external service. These tests are ignored by default as they depend on external services and are slow. Run with: mvn test -Dtest=CircuitBreakerIntegrationTest
    • Constructor Detail

      • CircuitBreakerIntegrationTest

        public CircuitBreakerIntegrationTest()
    • Method Detail

      • setUp

        public void setUp()
      • tearDown

        public void tearDown()
      • testSuccessfulRequest

        public void testSuccessfulRequest()
      • testCircuitBreakerOpens

        public void testCircuitBreakerOpens()
      • testCircuitBreakerWithFluentAPI

        public void testCircuitBreakerWithFluentAPI()
      • testCircuitBreakerResetsAfterTimeout

        public void testCircuitBreakerResetsAfterTimeout()
                                                  throws Exception
        This test is for manual verification as it depends on timing. Comment out the @Test annotation if you don't want to run it as part of automated tests.
        Throws:
        Exception