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, valueBuilderFactoryapi, 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, tearDownassemblyException, initApplication, newApplicationInstance, newApplicationModelpublic void setUp()
throws Exception
setUp in class AbstractPolygeneTestExceptionpublic void givenInvalidCacheNameWhenFetchingCacheExpectIllegalArgumentException()
public void givenNullKeyWhenFetchingCacheExpectConstraintViolationException()
public void givenLoooongCacheNameWhenFetchingCacheExpectOk()
public void givenEmptyCacheWhenFetchingValueExpectNull()
public void givenCacheWithAValueWhenRequestingThatValueExpectItBack()
public void givenCacheWithAValueWhenReplacingValueExpectNewValue()
public void givenCacheWithValueWhenDroppingReferenceAndRequestNewCacheAndItsValueExpectItToBeGone()