- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testAcquireParameterValidation (0.21 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThrows(IllegalArgumentException.class, () -> limiter.setRate(-10.0)); assertThrows(IllegalArgumentException.class, () -> limiter.setRate(Double.NaN)); } public void testAcquireParameterValidation() { RateLimiter limiter = RateLimiter.create(999); assertThrows(IllegalArgumentException.class, () -> limiter.acquire(0)); assertThrows(IllegalArgumentException.class, () -> limiter.acquire(-1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThrows(IllegalArgumentException.class, () -> limiter.setRate(-10.0)); assertThrows(IllegalArgumentException.class, () -> limiter.setRate(Double.NaN)); } public void testAcquireParameterValidation() { RateLimiter limiter = RateLimiter.create(999); assertThrows(IllegalArgumentException.class, () -> limiter.acquire(0)); assertThrows(IllegalArgumentException.class, () -> limiter.acquire(-1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.8K bytes - Viewed (0)