|
||||||||||
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.NodeOrderableChildNodesTest
public class NodeOrderableChildNodesTest
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 node
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, 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 |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
NodeOrderableChildNodesTest()
|
Method Summary | |
---|---|
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. |
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, setUp |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeOrderableChildNodesTest()
Method Detail |
---|
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
.
RepositoryException
NotExecutableException
public void testOrderBeforeInvalidSrc() throws RepositoryException, NotExecutableException
Node.orderBefore(String,
String)
with an invalid source reference.
This should throw an ItemNotFoundException
.
RepositoryException
NotExecutableException
public void testOrderBeforeUnsupportedRepositoryOperationException() throws RepositoryException, NotExecutableException
Node.orderBefore(String, String)
that does not support child reordering.
This should throw and
UnsupportedRepositoryOperationException
. Prequisites:
RepositoryException
NotExecutableException
public void testOrderBeforePlaceAtEndParentSave() throws RepositoryException, NotExecutableException
Item.save()
.
RepositoryException
NotExecutableException
public void testOrderBeforePlaceAtEndSessionSave() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
public void testOrderBeforeSecondToFirstParentSave() throws RepositoryException, NotExecutableException
Item.save()
.
RepositoryException
NotExecutableException
public void testOrderBeforeSecondToFirstSessionSave() throws RepositoryException, NotExecutableException
Session.save()
.
RepositoryException
NotExecutableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |