public abstract class AbstractCacheStatisticsTest extends AbstractCacheTest
AbstractCacheTest.CacheType| Modifier and Type | Field and Description |
|---|---|
protected CacheSettingsDefaultsProvider |
mockDefaultSettingsProvider |
org.mockito.junit.MockitoRule |
mockitoRule |
protected CacheSettings |
statsDisabledSettings |
protected CacheSettings |
statsEnabledSettings |
factory| Constructor and Description |
|---|
AbstractCacheStatisticsTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
disableStatisticsInDefaultSettingsProvider() |
protected abstract void |
enableStatisticsInDefaultSettingsProvider() |
protected Cache<String,Long> |
makeStatisticsDisabledCache() |
protected Cache<String,Long> |
makeStatisticsEnabledCache() |
void |
testStatisticsDisabledViaManager() |
void |
testStatisticsDisabledViaSettings() |
void |
testStatisticsDisabledViaSettingsTakesPrecedence() |
void |
testStatisticsEnabledViaManager() |
void |
testStatisticsEnabledViaSettings() |
void |
testStatisticsEnabledViaSettingsTakesPrecedence() |
assertContainsKeys, assertEmpty, assertEventuallyThat, assertMissingKeys, assertSize, makeExceptionalCache, makeExpiringCache, makeNullReturningCache, makeSimpleCache, makeSimpleCache, makeSizeLimitedCache, makeSizeLimitedCache, makeSlowCache, makeUnexpiringCache, settingsBuilder, settingsBuilder, testWhenRemovingAKeyWhereTheLoaderReturnsNullTheExceptionIsSwallowed, testWhenRemovingAKeyWithValueWhereTheLoaderReturnsNullTheExceptionIsSwallowed, testWhenRemovingAllKeysWhereTheLoaderReturnsNullTheExceptionIsSwallowedpublic org.mockito.junit.MockitoRule mockitoRule
protected CacheSettings statsEnabledSettings
protected CacheSettings statsDisabledSettings
@Mock protected CacheSettingsDefaultsProvider mockDefaultSettingsProvider
public void testStatisticsEnabledViaSettings()
public void testStatisticsDisabledViaSettings()
public void testStatisticsEnabledViaManager()
public void testStatisticsDisabledViaManager()
public void testStatisticsDisabledViaSettingsTakesPrecedence()
public void testStatisticsEnabledViaSettingsTakesPrecedence()
protected abstract void enableStatisticsInDefaultSettingsProvider()
protected abstract void disableStatisticsInDefaultSettingsProvider()
Copyright © 2018 Atlassian. All rights reserved.