org.alfresco.repo.content.filestore
Class NoRandomAccessFileContentStoreTest

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.filestore.NoRandomAccessFileContentStoreTest
All Implemented Interfaces:
junit.framework.Test

public class NoRandomAccessFileContentStoreTest
extends AbstractWritableContentStoreTest

Tests the file-based store when random access is not allowed, i.e. has to be spoofed.

Since:
2.1
See Also:
FileContentStore

Field Summary
 
Fields inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
ctx, transactionService
 
Constructor Summary
NoRandomAccessFileContentStoreTest()
           
 
Method Summary
protected  ContentStore getStore()
          Fetch the store to be used during a test.
 void setUp()
          Starts a transaction
 
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

NoRandomAccessFileContentStoreTest

public NoRandomAccessFileContentStoreTest()
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

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.