public class NodeUUIDTest extends AbstractJCRTest
NodeUUIDTest contains all tests for the
javax.jcr.Node class that require a UUID (and therefore are
optional). If the repository does not support the node type mix:referenceable
a NotExecutableException is thrown.isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, 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| Constructor and Description |
|---|
NodeUUIDTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testSaveMovedRefNode()
Moves a referencable node using
Session.move(String,
String) with one session and saves afterward changes made with a second
session to the moved node using Item.save(). |
void |
testSaveReferentialIntegrityException()
Tries to remove a node that is a reference target using
Item.save().Procedure: Creates two nodes with same session One has a referencing property pointing to the other node Target node gets removed. This should generate a ReferentialIntegrityException upon save. |
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run, setUp, tearDowncountTestCases, createResult, getName, 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 testSaveReferentialIntegrityException()
throws RepositoryException,
NotExecutableException
Item.save().ReferentialIntegrityException upon save.
javax.jcr.tck.NodeUUIDTest.nodetype
must allow a property of type PropertyType.REFERENCEjavax.jcr.tck.NodeUUIDTest.propertyname1 name of the
property of type PropertyType.REFERENCEjavax.jcr.tck.NodeUUIDTest.nodetype2 must have the mixin
type mix:referenceable assigned.public void testSaveMovedRefNode()
throws RepositoryException,
NotExecutableException
Session.move(String,
String) with one session and saves afterward changes made with a second
session to the moved node using Item.save().
Procedure:
InvalidItemStateException if 'move' is reported to the second
session as a sequence of remove and add events. javax.jcr.tck.NodeUUIDTest.nodetype2 must have the mixin
type mix:referenceable assigned.javax.jcr.tck.NodeUUIDTest.testSaveMovedRefNode.propertyname1
name of a property that can be modified in nodetype2 for
testingCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.