|
|||||||||
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
public abstract class AbstractWritableContentStoreTest
Abstract base class that provides a set of tests for implementations
of ContentStore
.
ContentStore
,
ContentReader
,
ContentWriter
Field Summary |
---|
Fields inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest |
---|
ctx, transactionService |
Constructor Summary | |
---|---|
AbstractWritableContentStoreTest()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest |
---|
getReader, getStore, setUp, 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 AbstractWritableContentStoreTest()
Method Detail |
---|
protected java.lang.String getExistingContentUrl()
This implementation creates some content in the store and returns the new content URL.
getExistingContentUrl
in class AbstractReadOnlyContentStoreTest
protected org.alfresco.service.cmr.repository.ContentWriter getWriter()
public void testSetUp() throws java.lang.Exception
testSetUp
in class AbstractReadOnlyContentStoreTest
java.lang.Exception
public void testWritable() throws java.lang.Exception
java.lang.Exception
public void testSpaceUsed() throws java.lang.Exception
java.lang.Exception
public void testSpaceFree() throws java.lang.Exception
java.lang.Exception
public void testSpaceTotal() throws java.lang.Exception
java.lang.Exception
public void testRootLocation() throws java.lang.Exception
java.lang.Exception
public void testIllegalWritableContentUrls()
public void testSimpleUse()
public void testGetReader() throws java.lang.Exception
java.lang.Exception
public void testReaderImmutability()
public void testMimetypAndEncodingAndLocale() throws java.lang.Exception
java.lang.Exception
public void testClosedState() throws java.lang.Exception
java.lang.Exception
public void testGetUrls()
public void testDeleteSimple() throws java.lang.Exception
java.lang.Exception
public void testDeleteReaderStates() throws java.lang.Exception
Only applies when AbstractReadOnlyContentStoreTest.getStore()
returns a value.
java.lang.Exception
public void testWriteStreamListener() throws java.lang.Exception
java.lang.Exception
public 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.Exception
public void testStringTruncation() throws java.lang.Exception
java.lang.Exception
public void testReadAndWriteFile() throws java.lang.Exception
java.lang.Exception
public void testReadAndWriteStreamByPull() throws java.lang.Exception
java.lang.Exception
public void testReadAndWriteStreamByPush() throws java.lang.Exception
java.lang.Exception
public void testListUrls() throws java.lang.Exception
Only applies when AbstractReadOnlyContentStoreTest.getStore()
returns a value.
java.lang.Exception
public void testRandomAccessWrite() throws java.lang.Exception
Only executes if the writer implements RandomAccessContent
.
java.lang.Exception
public void testRandomAccessRead() throws java.lang.Exception
Only executes if the reader implements RandomAccessContent
.
testRandomAccessRead
in class AbstractReadOnlyContentStoreTest
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |