|
|||||||||
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
public abstract class AbstractReadOnlyContentStoreTest
Abstract base class that provides a set of tests for implementations
of ContentStore
.
ContentStore
,
ContentReader
,
ContentWriter
Field Summary | |
---|---|
protected static org.springframework.context.ApplicationContext |
ctx
|
protected TransactionService |
transactionService
|
Constructor Summary | |
---|---|
AbstractReadOnlyContentStoreTest()
|
Method Summary | |
---|---|
protected java.lang.String |
getExistingContentUrl()
Fetch a valid URL from the store. |
protected org.alfresco.service.cmr.repository.ContentReader |
getReader(java.lang.String contentUrl)
Gets a reader for the given content URL from the store |
protected abstract ContentStore |
getStore()
Fetch the store to be used during a test. |
void |
setUp()
Starts a transaction |
void |
tearDown()
Rolls back the transaction |
void |
testBlockedWriteOperations()
|
void |
testGetReaderForExistingContentUrl()
Checks that the various methods of obtaining a reader are supported. |
void |
testIllegalReadableContentUrls()
Checks that the error handling for inappropriate content URLs |
void |
testRandomAccessRead()
Tests random access reading |
void |
testSetUp()
|
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 |
Field Detail |
---|
protected static final org.springframework.context.ApplicationContext ctx
protected TransactionService transactionService
Constructor Detail |
---|
public AbstractReadOnlyContentStoreTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
protected abstract ContentStore getStore()
setUp
to initialise resources.
Usually tests will construct a static instance of the store to use throughout all the tests.
protected final org.alfresco.service.cmr.repository.ContentReader getReader(java.lang.String contentUrl)
AbstractReadOnlyContentStoreTest.getStore()
protected java.lang.String getExistingContentUrl()
public void testSetUp() throws java.lang.Exception
java.lang.Exception
public void testIllegalReadableContentUrls()
public void testGetReaderForExistingContentUrl() throws java.lang.Exception
java.lang.Exception
public void testRandomAccessRead() throws java.lang.Exception
Only executes if the reader implements RandomAccessContent
.
java.lang.Exception
public void testBlockedWriteOperations() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |