org.alfresco.repo.content.caching
Class CachingContentStoreTest

java.lang.Object
  extended by org.alfresco.repo.content.caching.CachingContentStoreTest

public class CachingContentStoreTest
extends java.lang.Object

Tests for the CachingContentStore class. Tests use mock backing store and cache.


Constructor Summary
CachingContentStoreTest()
           
 
Method Summary
 void delegatedDelete()
           
 void delegatedExists()
           
 void delegatedGetRootLocation()
           
 void delegatedGetSpaceFree()
           
 void delegatedGetSpaceTotal()
           
 void delegatedGetSpaceUsed()
           
 void delegatedGetTotalSize()
           
 void delegatedGetUrls1()
           
 void delegatedGetUrls2()
           
 void delegatedIsContentUrlSupported()
           
 void delegatedIsWriteSupported()
           
 void encodingAttrsCopiedToBackingStoreWriter()
           
 void exceptionRaisedWhenCopyingTempToBackingStoreIsPropogatedCorrectly()
           
 void getReaderForItemInCache()
           
 void getReaderForItemMissingFromCacheButNoContentToCache()
           
 void getReaderForItemMissingFromCacheWillGiveUpAfterRetrying()
           
 void getReaderForItemMissingFromCacheWillRetryAndCanSucceed()
           
 void getWriterWhenCacheOnInbound()
           
 void getWriterWhenNotCacheOnInbound()
           
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingContentStoreTest

public CachingContentStoreTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

getReaderForItemInCache

public void getReaderForItemInCache()

getReaderForItemMissingFromCacheWillGiveUpAfterRetrying

public void getReaderForItemMissingFromCacheWillGiveUpAfterRetrying()

getReaderForItemMissingFromCacheWillRetryAndCanSucceed

public void getReaderForItemMissingFromCacheWillRetryAndCanSucceed()

getReaderForItemMissingFromCacheButNoContentToCache

public void getReaderForItemMissingFromCacheButNoContentToCache()

getWriterWhenNotCacheOnInbound

public void getWriterWhenNotCacheOnInbound()

getWriterWhenCacheOnInbound

public void getWriterWhenCacheOnInbound()
                                 throws org.alfresco.service.cmr.repository.ContentIOException,
                                        java.io.IOException
Throws:
org.alfresco.service.cmr.repository.ContentIOException
java.io.IOException

exceptionRaisedWhenCopyingTempToBackingStoreIsPropogatedCorrectly

public void exceptionRaisedWhenCopyingTempToBackingStoreIsPropogatedCorrectly()
                                                                       throws org.alfresco.service.cmr.repository.ContentIOException,
                                                                              java.io.IOException
Throws:
org.alfresco.service.cmr.repository.ContentIOException
java.io.IOException

encodingAttrsCopiedToBackingStoreWriter

public void encodingAttrsCopiedToBackingStoreWriter()

delegatedIsContentUrlSupported

public void delegatedIsContentUrlSupported()

delegatedIsWriteSupported

public void delegatedIsWriteSupported()

delegatedGetTotalSize

public void delegatedGetTotalSize()

delegatedGetSpaceUsed

public void delegatedGetSpaceUsed()

delegatedGetSpaceFree

public void delegatedGetSpaceFree()

delegatedGetSpaceTotal

public void delegatedGetSpaceTotal()

delegatedGetRootLocation

public void delegatedGetRootLocation()

delegatedExists

public void delegatedExists()

delegatedGetUrls1

public void delegatedGetUrls1()

delegatedGetUrls2

public void delegatedGetUrls2()

delegatedDelete

public void delegatedDelete()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.