|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
org.alfresco.repo.content.AbstractWritableContentStoreTest
org.alfresco.repo.content.filestore.FileContentStoreTest
public class FileContentStoreTest
Tests read and write functionality for the store.
FileContentStore| Field Summary |
|---|
| Fields inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest |
|---|
ctx, transactionService |
| Constructor Summary | |
|---|---|
FileContentStoreTest()
|
|
| Method Summary | |
|---|---|
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 |
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 |
testSpaceUsed()
Ensures that the size is positive |
| 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 |
|---|
public FileContentStoreTest()
| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
AbstractReadOnlyContentStoreTest
setUp 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 AbstractReadOnlyContentStoreTest
public void testConcurrentWriteDetection()
throws java.lang.Exception
java.lang.Exception
public void testRootLocation()
throws java.lang.Exception
AbstractWritableContentStoreTest
testRootLocation in class AbstractWritableContentStoreTestjava.lang.Exception
public void testSpaceUsed()
throws java.lang.Exception
testSpaceUsed in class AbstractWritableContentStoreTestjava.lang.Exception
public void testSpaceFree()
throws java.lang.Exception
testSpaceFree in class AbstractWritableContentStoreTestjava.lang.Exception
public void testSpaceTotal()
throws java.lang.Exception
testSpaceTotal in class AbstractWritableContentStoreTestjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||