Class ThreadLocalDocumentCacheTest
- java.lang.Object
-
- ydocumentcartpackage.persistence.polyglot.repository.documentcart.storage.cache.ThreadLocalDocumentCacheTest
-
@UnitTest public class ThreadLocalDocumentCacheTest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThreadLocalDocumentCacheTest.SingleResultStorageStrategy
-
Constructor Summary
Constructors Constructor Description ThreadLocalDocumentCacheTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp()
-
shouldReturnQueryResultFromLoadFromStorageStrategy
public void shouldReturnQueryResultFromLoadFromStorageStrategy()
-
shouldNotQueryCacheWhenNoContextIsActive
public void shouldNotQueryCacheWhenNoContextIsActive()
-
shouldQueryCacheWhenContextIsActive
public void shouldQueryCacheWhenContextIsActive()
-
shouldQueryCacheWhenContextIsActiveAndQueryIsUsingMatchingRootConditions
public void shouldQueryCacheWhenContextIsActiveAndQueryIsUsingMatchingRootConditions()
-
shouldQueryCacheWhenContextIsActiveAndQueryIsUsingNotMatchingRootConditions
public void shouldQueryCacheWhenContextIsActiveAndQueryIsUsingNotMatchingRootConditions()
-
shouldQueryCacheWhenContextIsActiveAndQueryIsUsingMatchingEntityId
public void shouldQueryCacheWhenContextIsActiveAndQueryIsUsingMatchingEntityId()
-
shouldQueryCacheWhenContextIsActiveAndQueryIsUsingNotMatchingEntityId
public void shouldQueryCacheWhenContextIsActiveAndQueryIsUsingNotMatchingEntityId()
-
shouldReturnEmptyResultWhenContextIsActiveAndQueryForRemovedDocumentAndUsingRootId
public void shouldReturnEmptyResultWhenContextIsActiveAndQueryForRemovedDocumentAndUsingRootId()
-
shouldReturnEmptyResultWhenContextIsActiveAndQueryForRemovedDocumentAndUsingMatchingRootCondition
public void shouldReturnEmptyResultWhenContextIsActiveAndQueryForRemovedDocumentAndUsingMatchingRootCondition()
-
shouldReturnEmptyResultWhenContextIsActiveAndQueryForRemovedDocumentAndUsingMatchingEntityId
public void shouldReturnEmptyResultWhenContextIsActiveAndQueryForRemovedDocumentAndUsingMatchingEntityId()
-
shouldSaveDocumentsInStorageWhenClosingContextAndMarkedAsSuccessful
public void shouldSaveDocumentsInStorageWhenClosingContextAndMarkedAsSuccessful()
-
shouldRemoveDocumentsInStorageWhenClosingContextAndMarkedAsSuccessful
public void shouldRemoveDocumentsInStorageWhenClosingContextAndMarkedAsSuccessful()
-
shouldNotSaveDocumentsInCacheWhenClosingContextAndNotMarkedAsSuccessful
public void shouldNotSaveDocumentsInCacheWhenClosingContextAndNotMarkedAsSuccessful()
-
shouldReturnDocumentFromCacheWhenAskingInSameContext
public void shouldReturnDocumentFromCacheWhenAskingInSameContext()
-
shouldFlushOnceWhenContextIsActive
public void shouldFlushOnceWhenContextIsActive()
-
shouldSaveDocumentInCacheWhenContextIsActive
public void shouldSaveDocumentInCacheWhenContextIsActive()
-
shouldNotSaveDocumentInCacheWhenContextIsNotActive
public void shouldNotSaveDocumentInCacheWhenContextIsNotActive()
-
shouldRemoveDocumentInCacheWhenContextIsActive
public void shouldRemoveDocumentInCacheWhenContextIsActive()
-
shouldNotRemoveDocumentInCacheWhenContextIsNotActive
public void shouldNotRemoveDocumentInCacheWhenContextIsNotActive()
-
shouldThrowExceptionWhenRemovingRemovedDocument
public void shouldThrowExceptionWhenRemovingRemovedDocument()
-
-