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.nodetype2
Name of a
valid node type that allows orderable child nodesjavax.jcr.tck.NodeOrderableChildNodesTest.nodetype3
Name 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, ntActivity, 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, setUp
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString
protected void tearDown() throws Exception
tearDown
in class AbstractJCRTest
Exception
public void testOrderBeforeInvalidDest() throws RepositoryException, NotExecutableException
Node.orderBefore(String, String)
with an invalid destination reference.
This should throw an ItemNotFoundException
.
public void testOrderBeforeInvalidSrc() throws RepositoryException, NotExecutableException
Node.orderBefore(String,
String)
with an invalid source reference.
This should throw an ItemNotFoundException
.
public void testOrderBeforeUnsupportedRepositoryOperationException() throws RepositoryException, NotExecutableException
Node.orderBefore(String, String)
that does not support child reordering.
This should throw and
UnsupportedRepositoryOperationException
. Prequisites:
public void testOrderBeforePlaceAtEndParentSave() throws RepositoryException, NotExecutableException
Item.save()
.public void testOrderBeforePlaceAtEndSessionSave() throws RepositoryException, NotExecutableException
public void testOrderBeforeSecondToFirstParentSave() throws RepositoryException, NotExecutableException
Item.save()
.public void testOrderBeforeSecondToFirstSessionSave() throws RepositoryException, NotExecutableException
Session.save()
.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.