public abstract class AbstractCachePoolTest extends AbstractQi4jTest
| Modifier and Type | Field and Description |
|---|---|
protected org.qi4j.spi.cache.Cache<String> |
cache |
protected org.qi4j.spi.cache.CachePool |
cachePool |
moduleapi, application, applicationModel, qi4j, spi| Constructor and Description |
|---|
AbstractCachePoolTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
givenCacheWithAValueWhenReplacingValueExpectNewValue() |
void |
givenCacheWithAValueWhenRequestingThatValueExpectItBack() |
void |
givenCacheWithValueWhenDroppingReferenceAndRequestNewCacheAndItsValueExpectItToBeGone() |
void |
givenEmptyCacheWhenFetchingValueExpectNull() |
void |
givenInvalidCacheNameWhenFetchingCacheExpectNullArgumentException() |
void |
givenLoooongCacheNameWhenFetchingCacheExpectOk() |
void |
setUp() |
defineApplication, tearDownassemblyException, initApplication, newApplication, newApplicationInstanceprotected org.qi4j.spi.cache.CachePool cachePool
protected org.qi4j.spi.cache.Cache<String> cache
public void setUp()
throws Exception
setUp in class AbstractQi4jTestExceptionpublic void givenInvalidCacheNameWhenFetchingCacheExpectNullArgumentException()
public void givenLoooongCacheNameWhenFetchingCacheExpectOk()
public void givenEmptyCacheWhenFetchingValueExpectNull()
public void givenCacheWithAValueWhenRequestingThatValueExpectItBack()
public void givenCacheWithAValueWhenReplacingValueExpectNewValue()
public void givenCacheWithValueWhenDroppingReferenceAndRequestNewCacheAndItsValueExpectItToBeGone()