Class ThreadLocalDocumentCacheTest


  • @UnitTest
    public class ThreadLocalDocumentCacheTest
    extends java.lang.Object
    • Constructor Detail

      • ThreadLocalDocumentCacheTest

        public ThreadLocalDocumentCacheTest()
    • 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()