public class TestLruBlockCache
extends java.lang.Object
Tests will ensure it grows and shrinks in size properly, evictions run when they're supposed to and do what they should, and that cached blocks are accessible when expected to be.
| Constructor and Description |
|---|
TestLruBlockCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
testBackgroundEvictionThread() |
void |
testCacheEvictionInMemoryForceMode() |
void |
testCacheEvictionSimple() |
void |
testCacheEvictionThreePriorities() |
void |
testCacheEvictionTwoPriorities() |
void |
testCacheSimple() |
void |
testPastNPeriodsMetrics() |
void |
testResizeBlockCache() |
void |
testScanResistance() |
public void testBackgroundEvictionThread()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheSimple()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheEvictionSimple()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheEvictionTwoPriorities()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheEvictionThreePriorities()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheEvictionInMemoryForceMode()
throws java.lang.Exception
java.lang.Exceptionpublic void testScanResistance()
throws java.lang.Exception
java.lang.Exceptionpublic void testResizeBlockCache()
throws java.lang.Exception
java.lang.Exceptionpublic void testPastNPeriodsMetrics()
throws java.lang.Exception
java.lang.Exception