public class RoutingContentServiceTest
extends junit.framework.TestCase
RoutingContentService| Constructor and Description |
|---|
RoutingContentServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
onContentReadBehaviourTest(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
onContentUpdateBehaviourTest(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent) |
void |
setUp() |
void |
tearDown() |
void |
testAutoSettingOfProperties()
Checks that the URL, mimetype and encoding are automatically set on the readers
and writers
|
void |
testConcurrentWritesNoTxn()
Checks that multiple writes can occur to the same node outside of any transactions.
|
void |
testConcurrentWritesWithMultipleTxns()
Create several threads that will attempt to write to the same node property.
|
void |
testConcurrentWritesWithSingleTxn() |
void |
testContentStoreSizes() |
void |
testGetRawReader() |
void |
testMissingContent()
Checks what happens when the physical content disappears
|
void |
testNullReaderForNullUrl() |
void |
testOnContentReadPolicy() |
void |
testOnContentUpdatePolicy()
Tests that the content update policy firs correctly
|
void |
testPostCopyContentRetrieval()
Checks that node copy and delete behaviour behaves correctly w.r.t.
|
void |
testRollbackCleanup_ALF2890()
Ensure that content URLs outside of a transaction are not touched on rollback.
|
void |
testSetUp() |
void |
testSimpleNonTempWriter()
Check that a valid writer into the content store can be retrieved and used.
|
void |
testSimpleWrite()
Tests simple writes that don't automatically update the node content URL
|
void |
testTempWrite() |
void |
testTransformation() |
void |
testUnknownMimetype()
Check that the system is able to handle the uploading of content with an unknown mimetype.
|
void |
testUpdatingWrite()
Tests the automatic updating of nodes' content URLs
|
void |
testWriteToNodeWithoutAnyContentProperties() |
countTestCases, 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, formatpublic void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testSetUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleNonTempWriter()
throws java.lang.Exception
java.lang.Exceptionpublic void testAutoSettingOfProperties()
throws java.lang.Exception
java.lang.Exceptionpublic void testWriteToNodeWithoutAnyContentProperties()
throws java.lang.Exception
java.lang.Exceptionpublic void testNullReaderForNullUrl()
throws java.lang.Exception
java.lang.Exceptionpublic void testContentStoreSizes()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetRawReader()
throws java.lang.Exception
java.lang.Exceptionpublic void testMissingContent()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleWrite()
throws java.lang.Exception
java.lang.Exceptionpublic void testOnContentUpdatePolicy()
public void onContentUpdateBehaviourTest(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
public void testOnContentReadPolicy()
public void onContentReadBehaviourTest(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void testTempWrite()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdatingWrite()
throws java.lang.Exception
java.lang.Exceptionpublic void testConcurrentWritesNoTxn()
throws java.lang.Exception
It is only when the streams are closed that the node is updated.
java.lang.Exceptionpublic void testConcurrentWritesWithSingleTxn()
throws java.lang.Exception
java.lang.Exceptionpublic void testConcurrentWritesWithMultipleTxns()
throws java.lang.Exception
close and not the transaction that
fetched the ContentWriter.java.lang.Exceptionpublic void testTransformation()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnknownMimetype()
throws java.lang.Exception
java.lang.Exceptionpublic void testPostCopyContentRetrieval()
throws java.lang.Exception
java.lang.Exceptionpublic void testRollbackCleanup_ALF2890()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.