public class RestoreTest extends AbstractVersionTest
RestoreTest covers tests related to the restore methods available
on Node in simple versioning:
Node.restore(String, boolean)Node.restore(Version, boolean)Node.restore(Version, String, boolean)nonVersionableNode, nonVersionableNodeType, propertyValue, versionableNode, versionableNodeTypeisReadOnly, 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 |
|---|
RestoreTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testLinearVersions()
Tests if restore on simple versioning creates a new version that is
in the correct linear order.
|
void |
testLinearVersionsJcr2_2()
Tests if restore on simple versioning creates a new version that is
in the correct linear order.
|
void |
testLinearVersionsJcr2_3()
Tests if restore on simple versioning creates a new version that is
in the correct linear order.
|
void |
testLinearVersionsJcr2_4()
Tests if restore on simple versioning creates a new version that is
in the correct linear order.
|
void |
testLinearVersionsJcr2()
Tests if restore on simple versioning creates a new version that is
in the correct linear order.
|
void |
testRestoreChild1() |
void |
testRestoreChild1Jcr2_2() |
void |
testRestoreChild1Jcr2_3() |
void |
testRestoreChild1Jcr2_4() |
void |
testRestoreChild1Jcr2() |
void |
testRestoreCorrectProperty()
Test if restoring a node restores the correct property
|
void |
testRestoreCorrectPropertyJcr2_2()
Test if restoring a node restores the correct property
|
void |
testRestoreCorrectPropertyJcr2_3()
Test if restoring a node restores the correct property
|
void |
testRestoreCorrectPropertyJcr2_4()
Test if restoring a node restores the correct property
|
void |
testRestoreCorrectPropertyJcr2()
Test if restoring a node restores the correct property
|
void |
testRestoreInvalidVersion()
VersionException expected on Node.restore(Version, boolean) if the
specified version is not part of this node's version history.
|
void |
testRestoreInvalidVersion2()
VersionException expected on Node.restore(String, boolean) if the specified version is not part of this node's version history.
|
void |
testRestoreInvalidVersion2Jcr2()
VersionException expected on Node.restore(String, boolean) if the specified version is not part of this node's version history.
|
void |
testRestoreInvalidVersionJcr2()
VersionException expected on restore if the
specified version is not part of this node's version history.
|
void |
testRestoreLabel()
Test the restore of a versionable node using a label.
|
void |
testRestoreLabelJcr2()
Test the restore of a versionable node using a label.
|
void |
testRestoreName()
Test the restore of the OPV=Version child nodes.
|
void |
testRestoreNameJcr2()
Test the restore of the OPV=Version child nodes.
|
void |
testRestoreNonVersionableNode()
Test calling Node.restore(String, boolean) on a non-versionable node.
|
void |
testRestoreNonVersionableNode2()
Test calling Node.restore(Version, String, boolean) on a non-versionable node.
|
void |
testRestoreNonVersionableNode3()
Test calling Node.restore(Version, boolean) on a non-versionable node.
|
void |
testRestoreNonVersionableNode3Jcr2_2()
Test restoring on a non-versionable node.
|
void |
testRestoreNonVersionableNodeJcr2_2()
Test restoring on a non-versionable node.
|
void |
testRestoreOnCheckedInNode()
Test if restoring a node works on checked-in node.
|
void |
testRestoreOnCheckedInNodeJcr2_1()
Test if restoring a node works on checked-in node.
|
void |
testRestoreOnCheckedInNodeJcr2_2()
Test if restoring a node works on checked-in node.
|
void |
testRestoreOnCheckedInNodeJcr2_3()
Test if restoring a node works on checked-in node.
|
void |
testRestoreOnCheckedInNodeJcr2_4()
Test if restoring a node works on checked-in node.
|
void |
testRestoreOnCheckedOutNode()
Test if restoring a node works on checked-out node.
|
void |
testRestoreOnCheckedOutNodeJcr2_2()
Test if restoring a node works on checked-out node.
|
void |
testRestoreOnCheckedOutNodeJcr2_3()
Test if restoring a node works on checked-out node.
|
void |
testRestoreOnCheckedOutNodeJcr2_4()
Test if restoring a node works on checked-out node.
|
void |
testRestoreOnCheckedOutNodeJcr2()
Test if restoring a node works on checked-out node.
|
void |
testRestoreOrder()
Test the child ordering of restored nodes.
|
void |
testRestoreOrder2()
Test the child ordering of restored nodes.
|
void |
testRestoreOrder2Jcr2_2()
Test the child ordering of restored nodes.
|
void |
testRestoreOrder2Jcr2_3()
Test the child ordering of restored nodes.
|
void |
testRestoreOrder2Jcr2_4()
Test the child ordering of restored nodes.
|
void |
testRestoreOrder2Jcr2()
Test the child ordering of restored nodes.
|
void |
testRestoreOrderJcr2_2()
Test the child ordering of restored nodes.
|
void |
testRestoreOrderJcr2_3()
Test the child ordering of restored nodes.
|
void |
testRestoreOrderJcr2_4()
Test the child ordering of restored nodes.
|
void |
testRestoreOrderJcr2()
Test the child ordering of restored nodes.
|
void |
testRestoreRootVersionFail()
Test if restoring the root version fails.
|
void |
testRestoreRootVersionFailJcr2()
Test if restoring the root version fails.
|
void |
testRestoreSetsIsCheckedOutToFalse()
Restoring a node set the jcr:isCheckedOut property to false.
|
void |
testRestoreSetsIsCheckedOutToFalseJcr2_2()
Restoring a node set the jcr:isCheckedOut property to false.
|
void |
testRestoreSetsIsCheckedOutToFalseJcr2_4()
Restoring a node set the jcr:isCheckedOut property to false.
|
void |
testRestoreSetsIsCheckedOutToFalseJcr2()
Restoring a node set the jcr:isCheckedOut property to false.
|
void |
testRestoreSetsIsCheckedOutToFalseJcr3()
Restoring a node set the jcr:isCheckedOut property to false.
|
void |
testRestoreWithInvalidVersion()
Test if restoring a node with an invalid Version throws a VersionException
|
void |
testRestoreWithInvalidVersionJcr2()
Test if restoring a node with an invalid Version throws a VersionException
|
void |
testRestoreWithPendingChanges()
Test if InvalidItemStateException is thrown if the node has pending changes.
|
void |
testRestoreWithPendingChangesJcr2_2()
Test if InvalidItemStateException is thrown if the node has pending changes.
|
void |
testRestoreWithPendingChangesJcr2_3()
Test if InvalidItemStateException is thrown if the node has pending changes.
|
void |
testRestoreWithPendingChangesJcr2_4()
Test if InvalidItemStateException is thrown if the node has pending changes.
|
void |
testRestoreWithPendingChangesJcr2()
Test if InvalidItemStateException is thrown if the node has pending changes.
|
void |
testRestoreWithUUIDConflict()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
testRestoreWithUUIDConflictJcr2_2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
testRestoreWithUUIDConflictJcr2_3()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
testRestoreWithUUIDConflictJcr2_4()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
testRestoreWithUUIDConflictJcr2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
createVersionableNode, getNumberOfVersionscheckSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, runassertEquals, 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 setUp()
throws Exception
setUp in class AbstractVersionTestExceptionprotected void tearDown()
throws Exception
tearDown in class AbstractVersionTestExceptionpublic void testRestoreRootVersionFail()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreRootVersionFailJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedInNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_1()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_4()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedOutNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2_3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2_4()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalse()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr2_4()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreCorrectProperty()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2_3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2_4()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithPendingChanges()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2_3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2_4()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreInvalidVersion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreInvalidVersionJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreInvalidVersion2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreInvalidVersion2Jcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreNonVersionableNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionNode.restore(String, boolean)public void testRestoreNonVersionableNodeJcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionNode.restore(String, boolean)public void testRestoreNonVersionableNode2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionNode.restore(Version, String, boolean)public void testRestoreNonVersionableNode3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionNode.restore(Version, boolean)public void testRestoreNonVersionableNode3Jcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionNode.restore(Version, boolean)public void testRestoreWithInvalidVersion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithInvalidVersionJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreWithUUIDConflict()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreWithUUIDConflictJcr2()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreWithUUIDConflictJcr2_2()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreWithUUIDConflictJcr2_3()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreWithUUIDConflictJcr2_4()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreChild1()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreChild1Jcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreChild1Jcr2_2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreChild1Jcr2_3()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreChild1Jcr2_4()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreLabel()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreLabelJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testRestoreName()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreNameJcr2()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrder()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrderJcr2()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrderJcr2_2()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrderJcr2_3()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrderJcr2_4()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrder2()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrder2Jcr2()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrder2Jcr2_2()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrder2Jcr2_3()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testRestoreOrder2Jcr2_4()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testLinearVersions()
throws Exception
Exceptionpublic void testLinearVersionsJcr2()
throws Exception
Exceptionpublic void testLinearVersionsJcr2_2()
throws Exception
Exceptionpublic void testLinearVersionsJcr2_3()
throws Exception
ExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.