public class TestRateLimiter
extends java.lang.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 java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testFixedIntervalResourceAvailability()
throws java.lang.Exception
java.lang.Exceptionpublic void testLimiterBySmallerRate()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testCanExecuteOfAverageIntervalRateLimiter()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testCanExecuteOfFixedIntervalRateLimiter()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic int testCanExecuteByRate(RateLimiter limiter, int rate)
public void testRefillOfAverageIntervalRateLimiter()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testRefillOfFixedIntervalRateLimiter()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUnconfiguredLimiters()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testExtremeLimiters()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLimiterCompensationOverflow()
throws java.lang.InterruptedException
java.lang.InterruptedException