public class RestoreTest extends AbstractVersionTest
RestoreTest
covers tests related to the restore methods available
on Node
in simple versioning:
nonVersionableNode, nonVersionableNodeType, propertyValue, versionableNode, versionableNodeType
isReadOnly, 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, getNumberOfVersions
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
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 setUp() throws Exception
setUp
in class AbstractVersionTest
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractVersionTest
Exception
public void testRestoreRootVersionFail() throws RepositoryException
RepositoryException
public void testRestoreRootVersionFailJcr2() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedInNode() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedInNodeJcr2_1() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedInNodeJcr2_2() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedInNodeJcr2_3() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedInNodeJcr2_4() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedOutNode() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedOutNodeJcr2() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedOutNodeJcr2_2() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedOutNodeJcr2_3() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedOutNodeJcr2_4() throws RepositoryException
RepositoryException
public void testRestoreSetsIsCheckedOutToFalse() throws RepositoryException
RepositoryException
public void testRestoreSetsIsCheckedOutToFalseJcr2() throws RepositoryException
RepositoryException
public void testRestoreSetsIsCheckedOutToFalseJcr2_2() throws RepositoryException
RepositoryException
public void testRestoreSetsIsCheckedOutToFalseJcr3() throws RepositoryException
RepositoryException
public void testRestoreSetsIsCheckedOutToFalseJcr2_4() throws RepositoryException
RepositoryException
public void testRestoreCorrectProperty() throws RepositoryException
RepositoryException
public void testRestoreCorrectPropertyJcr2() throws RepositoryException
RepositoryException
public void testRestoreCorrectPropertyJcr2_2() throws RepositoryException
RepositoryException
public void testRestoreCorrectPropertyJcr2_3() throws RepositoryException
RepositoryException
public void testRestoreCorrectPropertyJcr2_4() throws RepositoryException
RepositoryException
public void testRestoreWithPendingChanges() throws RepositoryException
RepositoryException
public void testRestoreWithPendingChangesJcr2() throws RepositoryException
RepositoryException
public void testRestoreWithPendingChangesJcr2_2() throws RepositoryException
RepositoryException
public void testRestoreWithPendingChangesJcr2_3() throws RepositoryException
RepositoryException
public void testRestoreWithPendingChangesJcr2_4() throws RepositoryException
RepositoryException
public void testRestoreInvalidVersion() throws RepositoryException
RepositoryException
public void testRestoreInvalidVersionJcr2() throws RepositoryException
RepositoryException
public void testRestoreInvalidVersion2() throws RepositoryException
RepositoryException
public void testRestoreInvalidVersion2Jcr2() throws RepositoryException
RepositoryException
public void testRestoreNonVersionableNode() throws RepositoryException
RepositoryException
Node.restore(String, boolean)
public void testRestoreNonVersionableNodeJcr2_2() throws RepositoryException
RepositoryException
Node.restore(String, boolean)
public void testRestoreNonVersionableNode2() throws RepositoryException
RepositoryException
Node.restore(Version, String, boolean)
public void testRestoreNonVersionableNode3() throws RepositoryException
RepositoryException
Node.restore(Version, boolean)
public void testRestoreNonVersionableNode3Jcr2_2() throws RepositoryException
RepositoryException
Node.restore(Version, boolean)
public void testRestoreWithInvalidVersion() throws RepositoryException
RepositoryException
public void testRestoreWithInvalidVersionJcr2() throws RepositoryException
RepositoryException
public 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
RepositoryException
public void testRestoreChild1Jcr2() throws RepositoryException
RepositoryException
public void testRestoreChild1Jcr2_2() throws RepositoryException
RepositoryException
public void testRestoreChild1Jcr2_3() throws RepositoryException
RepositoryException
public void testRestoreChild1Jcr2_4() throws RepositoryException
RepositoryException
public void testRestoreLabel() throws RepositoryException
RepositoryException
public void testRestoreLabelJcr2() throws RepositoryException
RepositoryException
public 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
Exception
public void testLinearVersionsJcr2() throws Exception
Exception
public void testLinearVersionsJcr2_2() throws Exception
Exception
public void testLinearVersionsJcr2_3() throws Exception
Exception
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.