Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCircuitOpensAfterThreshold (2.73 sec)

  1. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            assertEquals(0, stats.totalFailures);
            assertEquals(1.0, stats.successRate);
        }
    
        @Test
        @DisplayName("Test circuit opens after failure threshold")
        void testCircuitOpensAfterThreshold() {
            // Fail 3 times to open the circuit
            for (int i = 0; i < 3; i++) {
                try {
                    circuitBreaker.call(() -> {
                        throw new RuntimeException("Test failure");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top