public class NodeReorderTest extends AbstractObservationTest
Node.orderBefore(String, String) operations trigger
the appropriate observation events.
AbstractObservationTest.CallableALL_TYPES, DEFAULT_WAIT_TIMEOUT, obsMgrisReadOnly, 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 |
|---|
NodeReorderTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkInfoEntry(Map<?,?> info,
String key,
String expected)
Checks if the info map contains the given
key with the
expected value. |
protected void |
checkNodeReordered(Event[] events,
String src,
String dest,
String before)
Checks
Events for paths. |
void |
testNodeReorder()
Tests if reordering a child node triggers a
Event.NODE_REMOVED
and a Event.NODE_ADDED event. |
void |
testNodeReorderSameName()
Tests if reordering a child node triggers a
Event.NODE_REMOVED
and a Event.NODE_ADDED event with same name siblings. |
void |
testNodeReorderSameNameWithRemove()
Tests if reordering a child node triggers a
Event.NODE_REMOVED
and a Event.NODE_ADDED event with same name siblings. |
addEventListener, addEventListener, checkNodeAdded, checkNodeRemoved, checkNodes, checkPropertyAdded, checkPropertyChanged, checkPropertyRemoved, getEventByPath, getEvents, removeEventListener, setUp, tearDown, toArraycheckSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, runcountTestCases, 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 testNodeReorder()
throws RepositoryException,
NotExecutableException
Event.NODE_REMOVED
and a Event.NODE_ADDED event.public void testNodeReorderSameName()
throws RepositoryException,
NotExecutableException
Event.NODE_REMOVED
and a Event.NODE_ADDED event with same name siblings.public void testNodeReorderSameNameWithRemove()
throws RepositoryException,
NotExecutableException
Event.NODE_REMOVED
and a Event.NODE_ADDED event with same name siblings. Furthermore
a node is removed in the same save scope.protected void checkNodeReordered(Event[] events, String src, String dest, String before) throws RepositoryException
events - the Events.src - the source child path where the node was reordered from.dest - the destination child path where the node was reordered to.before - the destination child path where the node was reordered before.RepositoryException - if an error occurs while retrieving the nodes
from event instances.Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.