public class NodeOrderableChildNodesTest extends AbstractJCRTest
NodeOrderableChildNodesTest contains all node writing tests (LEVEL 2) that require a node
that allows child node ordering (tests therefore are optional).
If the repository does not support a node type with orderable child nodes
a NotExecutableException exception is thrown.
Prerequisites:
javax.jcr.tck.NodeOrderableChildNodesTest.nodetype2Name of a
valid node type that allows orderable child nodesjavax.jcr.tck.NodeOrderableChildNodesTest.nodetype3Name of a
valid node type that can be added as child nodeisReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, 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, testNodeTypeTestRoot, testPath, testRoot, testRootNode, vf, workspaceName| Constructor and Description |
|---|
NodeOrderableChildNodesTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
tearDown() |
void |
testOrderBeforeInvalidDest()
Tries to reorder child nodes using
Node.orderBefore(String, String)
with an invalid destination reference. |
void |
testOrderBeforeInvalidSrc()
Tries to reorder child nodes using
Node.orderBefore(String,
String) with an invalid source reference. |
void |
testOrderBeforePlaceAtEndParentSave()
Creates two child nodes, reorders first node to end, uses parentNode's
Item.save(). |
void |
testOrderBeforePlaceAtEndSessionSave()
Test Creates two child nodes, verifies that they are added propery.
|
void |
testOrderBeforeSecondToFirstParentSave()
Creates two child nodes, reorders second node before first, uses
parentNode's
Item.save(). |
void |
testOrderBeforeSecondToFirstSessionSave()
Creates two child nodes than reorders second node before first, saves
using
Session.save(). |
void |
testOrderBeforeUnsupportedRepositoryOperationException()
Tries to reorder on a node using
Node.orderBefore(String, String)
that does not support child reordering. |
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run, setUpassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toStringprotected void tearDown()
throws Exception
tearDown in class AbstractJCRTestExceptionpublic void testOrderBeforeInvalidDest()
throws javax.jcr.RepositoryException,
NotExecutableException
Node.orderBefore(String, String)
with an invalid destination reference.
This should throw an ItemNotFoundException.
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testOrderBeforeInvalidSrc()
throws javax.jcr.RepositoryException,
NotExecutableException
Node.orderBefore(String,
String) with an invalid source reference.
This should throw an ItemNotFoundException.
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testOrderBeforeUnsupportedRepositoryOperationException()
throws javax.jcr.RepositoryException,
NotExecutableException
Node.orderBefore(String, String)
that does not support child reordering.
This should throw and
UnsupportedRepositoryOperationException. Prequisites:
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testOrderBeforePlaceAtEndParentSave()
throws javax.jcr.RepositoryException,
NotExecutableException
Item.save().javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testOrderBeforePlaceAtEndSessionSave()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testOrderBeforeSecondToFirstParentSave()
throws javax.jcr.RepositoryException,
NotExecutableException
Item.save().javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testOrderBeforeSecondToFirstSessionSave()
throws javax.jcr.RepositoryException,
NotExecutableException
Session.save().javax.jcr.RepositoryExceptionNotExecutableExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.