org.alfresco.repo.content.caching
Class CachingContentStoreSpringTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
              extended by org.alfresco.repo.content.AbstractWritableContentStoreTest
                  extended by org.alfresco.repo.content.caching.CachingContentStoreSpringTest
All Implemented Interfaces:
junit.framework.Test

public class CachingContentStoreSpringTest
extends AbstractWritableContentStoreTest

Tests for the CachingContentStore that benefit from a full set of tests defined in AbstractWritableContentStoreTest.


Field Summary
 
Fields inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
ctx, transactionService
 
Constructor Summary
CachingContentStoreSpringTest()
           
 
Method Summary
protected  ContentStore getStore()
          Fetch the store to be used during a test.
 void setUp()
          Starts a transaction
 void testCacheOnInbound()
           
 void testStoreWillReadFromCacheWhenAvailable()
           
 void testStoreWillRecoverFromDeletedCacheFile()
           
 
Methods inherited from class org.alfresco.repo.content.AbstractWritableContentStoreTest
getExistingContentUrl, getWriter, testClosedState, testDeleteReaderStates, testDeleteSimple, testGetReader, testGetUrls, testIllegalWritableContentUrls, testListUrls, testMimetypAndEncodingAndLocale, testRandomAccessRead, testRandomAccessWrite, testReadAndWriteFile, testReadAndWriteStreamByPull, testReadAndWriteStreamByPush, testReaderImmutability, testRootLocation, testSetUp, testSimpleUse, testSpaceFree, testSpaceTotal, testSpaceUsed, testStringTruncation, testWritable, testWriteAndReadString, testWriteStreamListener
 
Methods inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
getReader, tearDown, testBlockedWriteOperations, testGetReaderForExistingContentUrl, testIllegalReadableContentUrls
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachingContentStoreSpringTest

public CachingContentStoreSpringTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: AbstractReadOnlyContentStoreTest
Starts a transaction

Overrides:
setUp in class AbstractReadOnlyContentStoreTest
Throws:
java.lang.Exception

testStoreWillReadFromCacheWhenAvailable

public void testStoreWillReadFromCacheWhenAvailable()

testCacheOnInbound

public void testCacheOnInbound()

testStoreWillRecoverFromDeletedCacheFile

public void testStoreWillRecoverFromDeletedCacheFile()

getStore

protected ContentStore getStore()
Description copied from class: AbstractReadOnlyContentStoreTest
Fetch the store to be used during a test. This method is invoked once per test - it is therefore safe to use setUp to initialise resources.

Usually tests will construct a static instance of the store to use throughout all the tests.

Specified by:
getStore in class AbstractReadOnlyContentStoreTest
Returns:
Returns the same instance of a store for all invocations.


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