public class NodeServiceTest
extends junit.framework.TestCase
NodeService functionality| Modifier and Type | Field and Description |
|---|---|
static org.alfresco.service.namespace.QName |
ASSOC_QNAME_CHILDREN |
static java.lang.String |
NAMESPACE |
protected NodeDAO |
nodeDAO |
protected NodeIndexer |
nodeIndexer |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
static org.alfresco.service.namespace.QName |
PROP_QNAME_NAME |
protected org.alfresco.service.cmr.repository.NodeRef |
rootNodeRef
populated during setup
|
protected ServiceRegistry |
serviceRegistry |
static java.lang.String |
TEST_PREFIX |
static org.alfresco.service.namespace.QName |
TYPE_QNAME_TEST |
| Constructor and Description |
|---|
NodeServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown()
Clean up the test thread
|
void |
testArchiveAndRestore()
Tests archive and restore of simple hierarchy, checking that references and IDs are
used correctly.
|
void |
testCaches_DeleteNode()
Checks that the node caches react correctly when a node is deleted
|
void |
testCaches_ImmutableNodeCaches()
Check that simple node property modifications advance the node caches correctly
|
void |
testCaches_RenameNode()
Checks that file renames are handled when getting children
|
void |
testConcurrentArchive()
Tests that two separate node trees can be deleted concurrently at the database level.
|
void |
testConcurrentLinkToDeletedNode()
Ensure that nodes cannot be linked to deleted nodes.
|
void |
testCreateNodePolicies() |
void |
testDuplicateChildNodeName() |
void |
testForceNonRootNodeWithNoParentNode()
Pending repeatable test - force issue ALF-ALF-13066 (non-root node with no parent)
|
void |
testGetAssocById() |
void |
testGetChildren_Limited() |
void |
testLocaleSupport() |
void |
testNodeHierarchyWalker() |
void |
testRootAspect() |
void |
testSetNodeTypePolicies() |
void |
testSetUp() |
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 static final java.lang.String NAMESPACE
public static final java.lang.String TEST_PREFIX
public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST
public static final org.alfresco.service.namespace.QName PROP_QNAME_NAME
public static final org.alfresco.service.namespace.QName ASSOC_QNAME_CHILDREN
protected ServiceRegistry serviceRegistry
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected NodeIndexer nodeIndexer
protected NodeDAO nodeDAO
protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
tearDown in class junit.framework.TestCasepublic void testSetUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testLocaleSupport()
throws java.lang.Exception
java.lang.Exceptionpublic void testRootAspect()
throws java.lang.Exception
java.lang.Exceptionpublic void testConcurrentArchive()
throws java.lang.Exception
java.lang.Exceptionpublic void testArchiveAndRestore()
public void testGetAssocById()
public void testDuplicateChildNodeName()
public void testGetChildren_Limited()
public void testCaches_DeleteNode()
public void testCaches_RenameNode()
public void testCaches_ImmutableNodeCaches()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateNodePolicies()
public void testSetNodeTypePolicies()
public void testConcurrentLinkToDeletedNode()
throws java.lang.Throwable
java.lang.Throwablepublic void testForceNonRootNodeWithNoParentNode()
throws java.lang.Throwable
java.lang.Throwablepublic void testNodeHierarchyWalker()
throws java.lang.Exception
java.lang.ExceptionNodeHierarchyWalkerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.