public abstract class AbstractWritableContentStoreTest extends AbstractReadOnlyContentStoreTest
ContentStore.ContentStore,
ContentReader,
ContentWriterctx, transactionService| Constructor and Description |
|---|
AbstractWritableContentStoreTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getExistingContentUrl()
Fetch a valid URL from the store.
|
protected org.alfresco.service.cmr.repository.ContentWriter |
getWriter()
Get a writer into the store.
|
void |
testClosedState() |
void |
testDeleteReaderStates()
Tests deletion of content.
|
void |
testDeleteSimple() |
void |
testGetReader()
Checks that the various methods of obtaining a reader are supported.
|
void |
testGetUrls() |
void |
testIllegalWritableContentUrls()
Checks that the error handling for inappropriate content URLs
|
void |
testListUrls()
Tests retrieval of all content URLs
|
void |
testMimetypAndEncodingAndLocale() |
void |
testRandomAccessRead()
Tests random access reading
|
void |
testRandomAccessWrite()
Tests random access writing
|
void |
testReadAndWriteFile() |
void |
testReadAndWriteStreamByPull() |
void |
testReadAndWriteStreamByPush() |
void |
testReaderImmutability()
Check that a reader is immutable, i.e.
|
void |
testRootLocation()
Just check that the method doesn't blow up
|
void |
testSetUp() |
void |
testSimpleUse()
Get a writer and write a little bit of content before reading it.
|
void |
testSpaceFree()
Just checks that the method doesn't blow up
|
void |
testSpaceTotal()
Just checks that the method doesn't blow up
|
void |
testSpaceUsed()
Just check that the method doesn't blow up
|
void |
testStringTruncation() |
void |
testWritable() |
void |
testWriteAndReadString()
The simplest test.
|
void |
testWriteStreamListener()
Checks that the writer can have a listener attached
|
getReader, getStore, setUp, 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, formatprotected java.lang.String getExistingContentUrl()
This implementation creates some content in the store and returns the new content URL.
getExistingContentUrl in class AbstractReadOnlyContentStoreTestprotected org.alfresco.service.cmr.repository.ContentWriter getWriter()
public void testSetUp()
throws java.lang.Exception
testSetUp in class AbstractReadOnlyContentStoreTestjava.lang.Exceptionpublic void testWritable()
throws java.lang.Exception
java.lang.Exceptionpublic void testSpaceUsed()
throws java.lang.Exception
java.lang.Exceptionpublic void testSpaceFree()
throws java.lang.Exception
java.lang.Exceptionpublic void testSpaceTotal()
throws java.lang.Exception
java.lang.Exceptionpublic void testRootLocation()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalWritableContentUrls()
public void testSimpleUse()
public void testGetReader()
throws java.lang.Exception
java.lang.Exceptionpublic void testReaderImmutability()
public void testMimetypAndEncodingAndLocale()
throws java.lang.Exception
java.lang.Exceptionpublic void testClosedState()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetUrls()
public void testDeleteSimple()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteReaderStates()
throws java.lang.Exception
Only applies when AbstractReadOnlyContentStoreTest.getStore() returns a value.
java.lang.Exceptionpublic void testWriteStreamListener()
throws java.lang.Exception
java.lang.Exceptionpublic void testWriteAndReadString()
throws java.lang.Exception
#getReader() and AbstractWritableContentStoreTest.getWriter() is not the same, then
values written and read won't be the same.java.lang.Exceptionpublic void testStringTruncation()
throws java.lang.Exception
java.lang.Exceptionpublic void testReadAndWriteFile()
throws java.lang.Exception
java.lang.Exceptionpublic void testReadAndWriteStreamByPull()
throws java.lang.Exception
java.lang.Exceptionpublic void testReadAndWriteStreamByPush()
throws java.lang.Exception
java.lang.Exceptionpublic void testListUrls()
throws java.lang.Exception
Only applies when AbstractReadOnlyContentStoreTest.getStore() returns a value.
java.lang.Exceptionpublic void testRandomAccessWrite()
throws java.lang.Exception
Only executes if the writer implements RandomAccessContent.
java.lang.Exceptionpublic void testRandomAccessRead()
throws java.lang.Exception
Only executes if the reader implements RandomAccessContent.
testRandomAccessRead in class AbstractReadOnlyContentStoreTestjava.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.