- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testCircuitOpensAfterThreshold (0.18 seconds)
-
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");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.6K bytes - Click Count (0)