|
|||||||||
| 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.node.NodeServiceTest
public class NodeServiceTest
Tests basic NodeService functionality
| Field Summary | |
|---|---|
static org.alfresco.service.namespace.QName |
ASSOC_QNAME_CHILDREN
|
static java.lang.String |
NAMESPACE
|
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 Summary | |
|---|---|
NodeServiceTest()
|
|
| Method Summary | |
|---|---|
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 |
testDuplicateChildNodeName()
|
void |
testGetAssocById()
|
void |
testGetChildren_Limited()
|
void |
testLocaleSupport()
|
void |
testRootAspect()
|
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 |
|---|
public 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 org.alfresco.service.cmr.repository.NodeRef rootNodeRef
| Constructor Detail |
|---|
public NodeServiceTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
tearDown in class junit.framework.TestCase
public void testSetUp()
throws java.lang.Exception
java.lang.Exception
public void testLocaleSupport()
throws java.lang.Exception
java.lang.Exception
public void testRootAspect()
throws java.lang.Exception
java.lang.Exception
public 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.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||