mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for CachingContentStoreTest, broken by fix for MNT-9663
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@58850 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -207,6 +207,7 @@ public class CachingContentStoreTest
|
||||
when(cache.getWriter("url")).thenReturn(cacheWriter);
|
||||
ContentReader readerFromCacheWriter = mock(ContentReader.class);
|
||||
when(cacheWriter.getReader()).thenReturn(readerFromCacheWriter);
|
||||
when(readerFromCacheWriter.exists()).thenReturn(true);
|
||||
when(cacheWriter.getSize()).thenReturn(54321L);
|
||||
QuotaManagerStrategy quota = mock(QuotaManagerStrategy.class);
|
||||
cachingStore.setQuota(quota);
|
||||
@@ -260,6 +261,7 @@ public class CachingContentStoreTest
|
||||
when(cache.getWriter("url")).thenReturn(cacheWriter);
|
||||
ContentReader readerFromCacheWriter = mock(ContentReader.class);
|
||||
when(cacheWriter.getReader()).thenReturn(readerFromCacheWriter);
|
||||
when(readerFromCacheWriter.exists()).thenReturn(true);
|
||||
when(cacheWriter.getSize()).thenReturn(54321L);
|
||||
QuotaManagerStrategy quota = mock(QuotaManagerStrategy.class);
|
||||
cachingStore.setQuota(quota);
|
||||
|
Reference in New Issue
Block a user