public abstract class AbstractCachePoolTest extends AbstractPolygeneTest
Modifier and Type | Field and Description |
---|---|
protected Cache<String> |
cache |
protected CachePool |
cachePool |
module, objectFactory, queryBuilderFactory, serviceFinder, transientBuilderFactory, unitOfWorkFactory, valueBuilderFactory
api, application, applicationModel, notYetImplementedRule, polygene, spi
Constructor and Description |
---|
AbstractCachePoolTest() |
Modifier and Type | Method and Description |
---|---|
void |
givenCacheWithAValueWhenReplacingValueExpectNewValue() |
void |
givenCacheWithAValueWhenRequestingThatValueExpectItBack() |
void |
givenCacheWithValueWhenDroppingReferenceAndRequestNewCacheAndItsValueExpectItToBeGone() |
void |
givenEmptyCacheWhenFetchingValueExpectNull() |
void |
givenInvalidCacheNameWhenFetchingCacheExpectIllegalArgumentException() |
void |
givenLoooongCacheNameWhenFetchingCacheExpectOk() |
void |
givenNullKeyWhenFetchingCacheExpectConstraintViolationException() |
void |
setUp() |
defineApplication, tearDown
assemblyException, initApplication, newApplicationInstance, newApplicationModel
public void setUp() throws Exception
setUp
in class AbstractPolygeneTest
Exception
public void givenInvalidCacheNameWhenFetchingCacheExpectIllegalArgumentException()
public void givenNullKeyWhenFetchingCacheExpectConstraintViolationException()
public void givenLoooongCacheNameWhenFetchingCacheExpectOk()
public void givenEmptyCacheWhenFetchingValueExpectNull()
public void givenCacheWithAValueWhenRequestingThatValueExpectItBack()
public void givenCacheWithAValueWhenReplacingValueExpectNewValue()
public void givenCacheWithValueWhenDroppingReferenceAndRequestNewCacheAndItsValueExpectItToBeGone()