|
||||||||||
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.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.ShareableNodeTest
public class ShareableNodeTest
Tests features available with shareable nodes.
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixSimpleVersionable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, vf, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
ShareableNodeTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testAddChild()
Add a child to a shareable node and verify that another node in the same shared set has the same child and is modified when the first one is (6.13.11). |
void |
testAddMixin()
Add the mix:shareable mixin to a node (6.13.2). |
void |
testClone()
Clone a mix:shareable node to the same workspace (6.13.20). |
void |
testCloneMultipleTimes()
Clone a mix:shareable node to the same workspace multiple times, remove all parents and save. |
void |
testCloneToSameParent()
Clone a mix:shareable node to the same workspace, with the same parent. |
void |
testCopy()
Copy a subtree that contains shareable nodes. |
void |
testDetectShareCycleOnClone()
Verify that a share cycle is detected (6.13.13) when a shareable node is cloned. |
void |
testDetectShareCycleOnMove()
Verify that a share cycle is detected (6.13.13) when a node is moved. |
void |
testDetectShareCycleOnTransientMove()
Verify that a share cycle is detected (6.13.13) when a node is transiently moved. |
void |
testGetIndex()
Verify that Node.getIndex returns the correct index in a shareable node (6.13). |
void |
testGetName()
Verify that Node.getName returns the correct name in a shareable node (6.13). |
void |
testGetNode()
Verify that the shareable node returned by Node.getNode() has the right name. |
void |
testGetNodes()
Verify that the shareable nodes returned by Node.getNodes() have the right name. |
void |
testGetNodesByPattern()
Verify that the shareable nodes returned by Node.getNodes(String) have the right name. |
void |
testGetPath()
Verify that Node.getPath returns the correct path in a shareable node (6.13). |
void |
testGetSharedSet()
Check new API Node.getSharedSet() (6.13.1) |
void |
testImportDocumentViewCollision()
Verify document view import via workspace (6.13.14). |
void |
testImportExportNtShare()
Verify export and import of a tree containing multiple nodes in the same shared set (6.13.14). |
void |
testImportSystemViewCollision()
Verify system view import via workspace (6.13.14). |
void |
testIsSame()
Verify that Node.isSame returns true for shareable nodes
in the same shared set (6.13.21) |
void |
testLock()
Verify that a lock applies to all nodes in a shared set (6.13.16). |
void |
testModifyDescendantAndRemoveShareAndSave()
Verify that invoking save() on a share-ancestor will save changes in all share-descendants. |
void |
testModifyDescendantAndSave()
Verify that invoking save() on a share-ancestor will save changes in all share-descendants. |
void |
testMoveShareableNode()
Move a node in a shared set. |
void |
testRemoveDescendantAndRemoveShareAndSave()
Verify that invoking save() on a share-ancestor will save changes in all share-descendants. |
void |
testRemoveDescendantAndSave()
Verify that invoking save() on a share-ancestor will save changes in all share-descendants. |
void |
testRemoveMixin()
Remove mix:shareable from a shareable node. |
void |
testRemoveShare()
Check new API Node.removeShare() (6.13.4). |
void |
testRemoveSharedSet()
Check new API Node.removeSharedSet() (6.13.4). |
void |
testRemoveSharedSetSaveOneParentOnly()
Invoke Node.removeSharedSet(), but save only one of the parent nodes of the shared set. |
void |
testRestore()
Create a shareable node by restoring it (6.13.3). |
void |
testRestoreRemoveExisting()
Restore a shareable node that automatically removes an existing shareable node (6.13.19). |
void |
testSameUUID()
Verify that shareable nodes in the same shared set have the same jcr:uuid (6.13.10). |
void |
testSearch()
Verify that a descendant of a shareable node appears once in the result set (6.13.23) |
void |
testSessionImportDocumentViewCollision()
Verify document view import via session (6.13.14). |
void |
testSessionImportSystemViewCollision()
Verify system view import via session (6.13.14). |
void |
testSharedNodePath()
Verify that shared nodes return correct paths. |
void |
testTransientMoveShareableNode()
Transiently move a node in a shared set. |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, 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 ShareableNodeTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class AbstractJCRTest
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class AbstractJCRTest
java.lang.Exception
public void testGetIndex() throws java.lang.Exception
java.lang.Exception
public void testGetName() throws java.lang.Exception
java.lang.Exception
public void testGetPath() throws java.lang.Exception
java.lang.Exception
public void testGetNode() throws java.lang.Exception
java.lang.Exception
public void testGetNodes() throws java.lang.Exception
java.lang.Exception
public void testGetNodesByPattern() throws java.lang.Exception
java.lang.Exception
public void testGetSharedSet() throws java.lang.Exception
java.lang.Exception
public void testAddMixin() throws java.lang.Exception
java.lang.Exception
public void testRestore() throws java.lang.Exception
java.lang.Exception
public void testRemoveShare() throws java.lang.Exception
java.lang.Exception
public void testRemoveSharedSet() throws java.lang.Exception
java.lang.Exception
public void testRemoveSharedSetSaveOneParentOnly() throws java.lang.Exception
java.lang.Exception
public void testSameUUID() throws java.lang.Exception
java.lang.Exception
public void testAddChild() throws java.lang.Exception
java.lang.Exception
public void testCopy() throws java.lang.Exception
java.lang.Exception
public void testDetectShareCycleOnClone() throws java.lang.Exception
java.lang.Exception
public void testDetectShareCycleOnMove() throws java.lang.Exception
java.lang.Exception
public void testDetectShareCycleOnTransientMove() throws java.lang.Exception
java.lang.Exception
public void testImportExportNtShare() throws java.lang.Exception
nt:share
, which
contains only the jcr:uuid
property of the shared node
and the jcr:primaryType
property indicating the type
nt:share
.
java.lang.Exception
public void testImportSystemViewCollision() throws java.lang.Exception
java.lang.Exception
public void testImportDocumentViewCollision() throws java.lang.Exception
java.lang.Exception
public void testSessionImportSystemViewCollision() throws java.lang.Exception
java.lang.Exception
public void testSessionImportDocumentViewCollision() throws java.lang.Exception
java.lang.Exception
public void testLock() throws java.lang.Exception
java.lang.Exception
public void testRestoreRemoveExisting() throws java.lang.Exception
java.lang.Exception
public void testClone() throws java.lang.Exception
java.lang.Exception
public void testIsSame() throws java.lang.Exception
true
for shareable nodes
in the same shared set (6.13.21)
java.lang.Exception
public void testRemoveMixin() throws java.lang.Exception
java.lang.Exception
public void testSearch() throws java.lang.Exception
java.lang.Exception
public void testCloneToSameParent() throws java.lang.Exception
java.lang.Exception
public void testMoveShareableNode() throws java.lang.Exception
java.lang.Exception
public void testTransientMoveShareableNode() throws java.lang.Exception
java.lang.Exception
public void testRemoveDescendantAndSave() throws java.lang.Exception
java.lang.Exception
public void testRemoveDescendantAndRemoveShareAndSave() throws java.lang.Exception
java.lang.Exception
public void testModifyDescendantAndSave() throws java.lang.Exception
java.lang.Exception
public void testModifyDescendantAndRemoveShareAndSave() throws java.lang.Exception
java.lang.Exception
public void testCloneMultipleTimes() throws java.lang.Exception
java.lang.Exception
public void testSharedNodePath() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |