public class RestoreTest extends AbstractVersionTest
RestoreTest covers tests related to the restore methods available
on Node in simple versioning:
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, ntActivity, 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 RepositoryException
RepositoryExceptionpublic void testRestoreRootVersionFailJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedInNode()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_1()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_3()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedInNodeJcr2_4()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedOutNode()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2_2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2_3()
throws RepositoryException
RepositoryExceptionpublic void testRestoreOnCheckedOutNodeJcr2_4()
throws RepositoryException
RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalse()
throws RepositoryException
RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr2_2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr3()
throws RepositoryException
RepositoryExceptionpublic void testRestoreSetsIsCheckedOutToFalseJcr2_4()
throws RepositoryException
RepositoryExceptionpublic void testRestoreCorrectProperty()
throws RepositoryException
RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2_2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2_3()
throws RepositoryException
RepositoryExceptionpublic void testRestoreCorrectPropertyJcr2_4()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithPendingChanges()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2_2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2_3()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithPendingChangesJcr2_4()
throws RepositoryException
RepositoryExceptionpublic void testRestoreInvalidVersion()
throws RepositoryException
RepositoryExceptionpublic void testRestoreInvalidVersionJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreInvalidVersion2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreInvalidVersion2Jcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreNonVersionableNode()
throws RepositoryException
RepositoryExceptionNode.restore(String, boolean)public void testRestoreNonVersionableNodeJcr2_2()
throws RepositoryException
RepositoryExceptionNode.restore(String, boolean)public void testRestoreNonVersionableNode2()
throws RepositoryException
RepositoryExceptionNode.restore(Version, String, boolean)public void testRestoreNonVersionableNode3()
throws RepositoryException
RepositoryExceptionNode.restore(Version, boolean)public void testRestoreNonVersionableNode3Jcr2_2()
throws RepositoryException
RepositoryExceptionNode.restore(Version, boolean)public void testRestoreWithInvalidVersion()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithInvalidVersionJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreWithUUIDConflict()
throws RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.public void testRestoreWithUUIDConflictJcr2()
throws RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.public void testRestoreWithUUIDConflictJcr2_2()
throws RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.public void testRestoreWithUUIDConflictJcr2_3()
throws RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.public void testRestoreWithUUIDConflictJcr2_4()
throws RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.public void testRestoreChild1()
throws RepositoryException
RepositoryExceptionpublic void testRestoreChild1Jcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreChild1Jcr2_2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreChild1Jcr2_3()
throws RepositoryException
RepositoryExceptionpublic void testRestoreChild1Jcr2_4()
throws RepositoryException
RepositoryExceptionpublic void testRestoreLabel()
throws RepositoryException
RepositoryExceptionpublic void testRestoreLabelJcr2()
throws RepositoryException
RepositoryExceptionpublic void testRestoreName()
throws RepositoryException,
NotExecutableException
public void testRestoreNameJcr2()
throws RepositoryException,
NotExecutableException
public void testRestoreOrder()
throws RepositoryException,
NotExecutableException
public void testRestoreOrderJcr2()
throws RepositoryException,
NotExecutableException
public void testRestoreOrderJcr2_2()
throws RepositoryException,
NotExecutableException
public void testRestoreOrderJcr2_3()
throws RepositoryException,
NotExecutableException
public void testRestoreOrderJcr2_4()
throws RepositoryException,
NotExecutableException
public void testRestoreOrder2()
throws RepositoryException,
NotExecutableException
public void testRestoreOrder2Jcr2()
throws RepositoryException,
NotExecutableException
public void testRestoreOrder2Jcr2_2()
throws RepositoryException,
NotExecutableException
public void testRestoreOrder2Jcr2_3()
throws RepositoryException,
NotExecutableException
public void testRestoreOrder2Jcr2_4()
throws RepositoryException,
NotExecutableException
public void testLinearVersions()
throws Exception
Exceptionpublic void testLinearVersionsJcr2()
throws Exception
Exceptionpublic void testLinearVersionsJcr2_2()
throws Exception
Exceptionpublic void testLinearVersionsJcr2_3()
throws Exception
ExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.