public class FileContentStoreTest extends AbstractWritableContentStoreTest
FileContentStorectx, transactionService| Constructor and Description |
|---|
FileContentStoreTest() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentStore |
getStore()
Fetch the store to be used during a test.
|
void |
setUp()
Starts a transaction
|
void |
testConcurrentWriteDetection()
Checks that the store disallows concurrent writers to be issued to the same URL.
|
void |
testDeleteLeavesNonEmptyDirs()
Only non-empty directories should be deleted.
|
void |
testDeleteRemovesEmptyDirs()
Empty parent directories should be removed when a URL is removed.
|
void |
testNoParentDirsDeleted()
Empty parent directories are not deleted if the store is configured not to.
|
void |
testRootLocation()
Just check that the method doesn't blow up
|
void |
testSpaceFree()
Ensures that the size is something other than -1 or Long.MAX_VALUE
|
void |
testSpaceTotal()
Ensures that the size is something other than -1 or Long.MAX_VALUE
|
void |
testWriteFileWithSizeLimit()
This method tests that writing content with a configured
limit fails with
the expected exception. |
getExistingContentUrl, getWriter, testClosedState, testDeleteReaderStates, testDeleteSimple, testGetReader, testGetUrls, testIllegalWritableContentUrls, testListUrls, testMimetypAndEncodingAndLocale, testRandomAccessRead, testRandomAccessWrite, testReadAndWriteFile, testReadAndWriteStreamByPull, testReadAndWriteStreamByPush, testReaderImmutability, testSetUp, testSimpleUse, testSpaceUsed, testStringTruncation, testWritable, testWriteAndReadString, testWriteStreamListenergetReader, tearDown, testBlockedWriteOperations, testGetReaderForExistingContentUrl, testIllegalReadableContentUrlscountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatpublic void setUp()
throws java.lang.Exception
AbstractReadOnlyContentStoreTestsetUp in class AbstractReadOnlyContentStoreTestjava.lang.Exceptionprotected ContentStore getStore()
AbstractReadOnlyContentStoreTestsetUp to initialise resources.
Usually tests will construct a static instance of the store to use throughout all the tests.
getStore in class AbstractReadOnlyContentStoreTestpublic void testConcurrentWriteDetection()
throws java.lang.Exception
java.lang.Exceptionpublic void testRootLocation()
throws java.lang.Exception
AbstractWritableContentStoreTesttestRootLocation in class AbstractWritableContentStoreTestjava.lang.Exceptionpublic void testSpaceFree()
throws java.lang.Exception
testSpaceFree in class AbstractWritableContentStoreTestjava.lang.Exceptionpublic void testSpaceTotal()
throws java.lang.Exception
testSpaceTotal in class AbstractWritableContentStoreTestjava.lang.Exceptionpublic void testDeleteRemovesEmptyDirs()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLeavesNonEmptyDirs()
public void testNoParentDirsDeleted()
throws java.lang.Exception
java.lang.Exceptionpublic void testWriteFileWithSizeLimit()
throws java.lang.Exception
limit fails with
the expected exception.java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.