public class TestRateLimiter extends Object
| Constructor and Description |
|---|
TestRateLimiter() |
| Modifier and Type | Method and Description |
|---|---|
int |
testCanExecuteByRate(RateLimiter limiter,
int rate) |
void |
testCanExecuteOfAverageIntervalRateLimiter() |
void |
testCanExecuteOfFixedIntervalRateLimiter() |
void |
testExtremeLimiters() |
void |
testFixedIntervalResourceAvailability() |
void |
testLimiterBySmallerRate() |
void |
testLimiterCompensationOverflow() |
void |
testOverconsumptionAverageIntervalRefillStrategy() |
void |
testOverconsumptionFixedIntervalRefillStrategy() |
void |
testRefillOfAverageIntervalRateLimiter() |
void |
testRefillOfFixedIntervalRateLimiter() |
void |
testUnconfiguredLimiters() |
void |
testWaitIntervalTimeUnitDays() |
void |
testWaitIntervalTimeUnitHours() |
void |
testWaitIntervalTimeUnitMinutes() |
void |
testWaitIntervalTimeUnitSeconds() |
public void testWaitIntervalTimeUnitSeconds()
public void testWaitIntervalTimeUnitMinutes()
public void testWaitIntervalTimeUnitHours()
public void testWaitIntervalTimeUnitDays()
public void testOverconsumptionAverageIntervalRefillStrategy()
public void testOverconsumptionFixedIntervalRefillStrategy()
throws InterruptedException
InterruptedExceptionpublic void testFixedIntervalResourceAvailability()
throws Exception
Exceptionpublic void testLimiterBySmallerRate()
throws InterruptedException
InterruptedExceptionpublic void testCanExecuteOfAverageIntervalRateLimiter()
throws InterruptedException
InterruptedExceptionpublic void testCanExecuteOfFixedIntervalRateLimiter()
throws InterruptedException
InterruptedExceptionpublic int testCanExecuteByRate(RateLimiter limiter, int rate)
public void testRefillOfAverageIntervalRateLimiter()
throws InterruptedException
InterruptedExceptionpublic void testRefillOfFixedIntervalRateLimiter()
throws InterruptedException
InterruptedExceptionpublic void testUnconfiguredLimiters()
throws InterruptedException
InterruptedExceptionpublic void testExtremeLimiters()
throws InterruptedException
InterruptedExceptionpublic void testLimiterCompensationOverflow()
throws InterruptedException
InterruptedException