public class FileContentStoreTest extends AbstractWritableContentStoreTest
FileContentStore
ctx, 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, testWriteStreamListener
getReader, tearDown, testBlockedWriteOperations, testGetReaderForExistingContentUrl, testIllegalReadableContentUrls
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
public void setUp() throws java.lang.Exception
AbstractReadOnlyContentStoreTest
setUp
in class AbstractReadOnlyContentStoreTest
java.lang.Exception
protected ContentStore getStore()
AbstractReadOnlyContentStoreTest
setUp
to initialise resources.
Usually tests will construct a static instance of the store to use throughout all the tests.
getStore
in class AbstractReadOnlyContentStoreTest
public void testConcurrentWriteDetection() throws java.lang.Exception
java.lang.Exception
public void testRootLocation() throws java.lang.Exception
AbstractWritableContentStoreTest
testRootLocation
in class AbstractWritableContentStoreTest
java.lang.Exception
public void testSpaceFree() throws java.lang.Exception
testSpaceFree
in class AbstractWritableContentStoreTest
java.lang.Exception
public void testSpaceTotal() throws java.lang.Exception
testSpaceTotal
in class AbstractWritableContentStoreTest
java.lang.Exception
public void testDeleteRemovesEmptyDirs() throws java.lang.Exception
java.lang.Exception
public void testDeleteLeavesNonEmptyDirs()
public void testNoParentDirsDeleted() throws java.lang.Exception
java.lang.Exception
public void testWriteFileWithSizeLimit() throws java.lang.Exception
limit
fails with
the expected exception.java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.